• We've added extra Spam Protection. if you get problem with account registration / registration rejected. please contact us
  • You need minimum 5 good posts for download files. Don´t push posting-counter with posts copy paste, thx, good, smileys..... Read This.
  • Note: don´t push posting-counter with messages like thx, good, haha, only use reactions! threads will be deleted without any comment or notification. Read Rules.
XenForo

Add More Guest Page Cache Variations

XenForo

Executive Member
Staff member
Administrator
Moderator
Joined
Jan 1, 2016
Messages
1,119
Reaction score
1,959
Points
113
XenForo 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...
 

riyo

New Member
Joined
May 4, 2019
Messages
10
Reaction score
6
Points
3
Age
42
Would you recommend it for very active forums?
 
Top

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