xF2 Add More Guest Page Cache Variations

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,466
    7,708
    321
    localhost
    Heisenberg submitted a new resource:

    - 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...

     
    Thread starter Similar threads Forum Replies Date
    ven0m xF2 We built our first XenForo add-on and wrote a tutorial about it Development tutorials [2.x] 0