Admin

Staff member
Administrator
Registered
Local time
1:17 PM
Joined
Aug 21, 2015
Messages
15,121
Reaction score
61,091
Points
113
Age
49
Location
Egypt
Website
www.nullscripts.net
Site Script
XenForo
Admin submitted a new resource:

Add More Guest Page Cache Variations - How to add more guest page cache variations

  • Open /xrc/XF/PageCache.php, backup a copy to your local computer.

Find this line (#261) :

Code:
return 'page_' . sha1($uri) . '_' . strlen($uri) . "_s{$styleId}_l{$languageId}_v" . self::CACHE_VERSION;

Change into :


Code:
return 'page_' . sha1($uri) . '_' . strlen($uri) . "_s{$styleId}_l{$languageId}_v" . self::CACHE_VERSION.'_c'.constant('MY_CUSTOM_VARIABLE');

  • Save.
Now you can have 1 more variation for guest page cache.

Read more about this resource...
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock