- Compatible XF 2.x versions
- 2.0
- Additional requirements
- php 5.6+
- License
- MIT Licence
- Visible branding
- No
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
Note;
A migration script is provided which knows how to copy MySQL or Redis Cache sessions to the new Session Cach Configuration.
Copying (from) memcache sessions is not supported.
For copying Redis/MySQL sessions to a separate cache: copy_sessions_to_cache.php
Please create a Github Pull request via the "More Information" link.
Contributions
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.
Defines a "sessionCache" section in addition to of a "cache" section. Takes all the same options, except
$config['cache']['sessions']
Note;
- In XenForo 2.1 the equivalent functionality is built-in.
- 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
- Does not require a particular caching solution
- Only affects public sessions. Installer/Admin sessions are hard coded in XenForo 2 to use MySQL storage
A migration script is provided which knows how to copy MySQL or Redis Cache sessions to the new Session Cach Configuration.
Copying (from) memcache sessions is not supported.
For copying Redis/MySQL sessions to a separate cache: copy_sessions_to_cache.php
- Copy copy_sessions_to_cache.php to somewhere on the webserver.
- Edit the line:
Code:
$dir = __DIR__ . '/html';
To point to the webroot. - Install add-on, configure sessionCache but disable.
- Run migration script.
- Configure sessionCache to be enabled.
- Note; some sessions will be lost, but not a large number.
Please create a Github Pull request via the "More Information" link.
Contributions
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 (free)