Resource icon

xF2 Dev Tools Add More Guest Page Cache Variations

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,717
Points
823

Reputation:

ENXF NET 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) :
    PHP:
    return 'page_' . sha1($uri) . '_' . strlen($uri) . "_s{$styleId}_l{$languageId}_v" . self::CACHE_VERSION;
  • Change into :
    PHP:
    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...
 
Top