Forum » » Bugs, Probs ... » » [Résolu] - Bug du forum sur l'affichage user
Posté : 17 févr. 2025 à 14:43
[code php] if ($SuperCache) { $cache_clef="forum-jump-to"; $CACHE_TIMINGS[$cache_clef]=3600; $cache_obj->startCachingBlock($cache_clef); } [/code]cette ligne qui et déclarer en debut de fichier initialise en meme temps la config de pucache
[code php] $cache_obj = ($SuperCache) ? new cacheManager() : new SuperCacheEmpty() ; [/code]ce qui fait la reference $CACHE_TIMINGS[$cache_clef]=3600; n'est pas trouver dans la function startCachingObjet($Xobjet) sur if ($CACHE_TIMINGS[$Xobjet] > 0) cette cette key $CACHE_TIMINGS[$cache_clef] est inconue du tableau sur $CACHE_TIMINGS[$Xobjet] donc te foire le cache ce qui et normale !!!! il faut metre a jour $CACHE_TIMINGS pour quil inclu cette clee, un simple global devrais regler le probleme
[code php] if ($SuperCache) { $cache_clef="forum-jump-to"; global $CACHE_TIMINGS; $CACHE_TIMINGS[$cache_clef]=3600; $cache_obj->startCachingBlock($cache_clef); } [/code]ce qui me semble !!!!!
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=26965&forum=1