Am I missing something?

Cachet rechenintensive Vorgänge bei der Darstellung von Beiträgen. Dadurch wird die Performance des phpBB stabilisiert und teilweise sogar erheblich verbessert.

Moderator: Supporter

Beitragvon obiewan » 20. Okt 2007 12:29

Hello there,

I'm installing this MOD... and I just saw something strange in the DIY..

2 times a FIND


Code: Alles auswählen
#
#-----[ FIND ]----------------------------------------------------------------
#

         if ( $post_id_sql != '' )
         {
            $sql = "DELETE

#
#-----[ FIND ]----------------------------------------------------------------
#

            remove_search_post($post_id_sql);

#
#-----[ AFTER, ADD ]----------------------------------------------------------
#

            // Cache Posts
            $cps_delete_array = explode(",", $post_id_sql);
            foreach ($cps_delete_array as $cps_delete_id)
            {
               foreach (glob($phpbb_root_path.'cache/posts/*post_'.intval($cps_delete_id).'.gz') as $cachefile)
               {
                  @unlink($cachefile);
               }
            }
            // Cache Posts



Is this correct?
Just downloaded it from this site

Zugefügt nach 8 Minute(n):

Found another one ...

Code: Alles auswählen
#
#-----[ FIND ]----------------------------------------------------------------
#

//
// Go ahead and pull all data for this topic
//

#
#-----[ FIND ]----------------------------------------------------------------
#

//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//

#
#-----[ FIND ]----------------------------------------------------------------
#

   $message = $postrow[$i]['post_text'];
Benutzeravatar
obiewan
 
Beiträge: 10
Registriert: 5. Jun 2007 06:30
Wohnort: Niederlande

Beitragvon AmigaLink » 20. Okt 2007 14:55

That is correct. So it is more simple to find the correct line for the new code. :)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon obiewan » 20. Okt 2007 18:15

:) ahh okay.... usually after a first FIND there's an INLINE FIND or something similar


Thank you
Benutzeravatar
obiewan
 
Beiträge: 10
Registriert: 5. Jun 2007 06:30
Wohnort: Niederlande


Zurück zu Cache Post System



Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 14 Gäste

cron