1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Session Cache 1.0.0

Seperate cache configuration for session data

  1. Xon
    Compatible XF Versions:
    • 1.5
    Additional Requirements:
    php 5.4
    MIT Licence
    Visible Branding:
    Allows the setup of a dedicated session cache distinct from the normal XF cache

    Defines a "sessionCache" section in addition to of a "cache" section. Takes all the same options, except $config['cache']['cacheSessions']

    • if no 'sessionCache' section is defined or it is disabled, falls back on existing cache/mysql storage
    • Xenforo Session handling does not interact with php sessions

    A migration script is provided which knows how to copy MySQL or Redis Cache sessions to the new Session Cach Configuration.

    Copying memcache sessions is not supported.

    For copying Redis/MySQL sessions to a separate cache: copy_sessions_to_cache.php
    1. Copy copy_sessions_to_cache.php to somewhere on the webserver.
    2. Edit the line:
      $fileDir = dirname(__FILE__) . '/html';
      To point to the webroot.
    3. Install add-on, configure sessionCache but disable.
    4. Run migration script.
    5. Configure sessionCache to be enabled.
    6. Note; some sessions will be lost, but not a large number.

    I recommend using Add-on install & upgrade to install this addon.

    Contributing features or bug fixes
    Please create a Github Pull request via the "Find more info at github.com..." link.


    If you appreciate this addon, please consider a contribution via PayPal. Details will be provide via private conversation.

    Please contact me if you wish for different licencing arrangements.
    Related Resources:
    Redis Cache
    otto, NixFifty, eva2000 and 1 other person like this.