Theme editor

Redis Cache By Xon

Redis Cache By Xon

Redis Cache By Xon 2.18.9

XF 2.3 Addons · by Staraddons · StarAddons Verified Vendor
1 Downloads 41 Views 4 Version
This add-on uses Credis with a custom cache provider for Redis. For best performance, install the ph
Price
Free
Available
Download

Overview Version (4) Discussion (4)

  • Redis Cache By Xon
    Redis Cache By Xon
    This add-on uses Credis with a custom cache provider for Redis. For best performance, install the ph
    redis cache
    redis cache by xon
    About this resource
    This add-on uses Credis with a custom cache provider for Redis. For best performance, install the php extension: phpredis

    You must have a Redis instance installed, this is likely not possible with shared hosting

    While XenForo 2 has a redis connector, it requires phpredis. This add-on does not.

    Feature overview
    • A pure php redis connector
    • High availability support
    • Exposes redis cache object for use for use by other add-ons
    • Implements some minor caching of forum thread counts
    • Redirect's XenForo's individual css template caching to hit redis as otherwise it causes unexpected write & deadlocking on the xf_css_cache table
    Installation

    Edit src/config.php and add:
    PHP:
    Expand Collapse Copy
    $config['cache']['enabled'] = true;
    $config['cache']['sessions'] = true;
    $config['cache']['provider'] = 'SV\RedisCache\Redis';
    $config['cache']['config'] = [
        'server' => '127.0.0.1',
        'port' => 6379,
    ];

    For details see the XenForo Manual: https://xenforo.com/docs/xf2/cache/

    @eva2000 has also written an in-depth walkthrough around setting up redis and this add-on:
    See "Xon's Redis Cache Addon For Xenforo 2.x" from:
    https://community.centminmod.com/th...on-centmin-mod-123-09beta01-lemp-stack.16060/
    Troubleshooting

    Please be aware that Redis is very sensitive to latency in a virtual environment. If repeated connection failures or protocol errors are experienced disable any Redis Persistence options.

    Options
    By default, forum thread counts are cached. In general, this is observable when moving large number of threads from one forum to another, and the total page counts are wrong.

    Redis Cache By Xon


    Redis Statistics
    Admincp dash board is extended with basic redis statistics:

    Redis Statistics


    Debugger Statistics
    Include redis timings when using the _debug=1 view for a page

    Read Scaling

    With the $config['cache']['config']['load_from_replica'] option, reads can be deferred to a singular replica instance. This takes all the options of 'config' (except the replicaconfig)

    See the FAQ for configuration samples.

    High availability

    The Zend component support primary/replica setups with Redis Sentinel support. It does not support Redis multi-master clustering.
    • Additionally, this add-on implement caching of thread counts in a forum.
    • Redis Sentinel support for high-availability (see FAQ for details).
  • Version
    2.18.9 Stable Available Mar 5, 2026 · 1
    File size: 82.2 KB
    SHA-256: 45e0d86f33c40e61f1891a2c7448484facf0cfcbd72e683d6e4f81efdd47b018
    SHA-256 verified Package valid Compatibility checked Last verified:
    • Fix XF2.3 compatibility where "Call to undefined method Symfony\Component\Cache\Adapter\RedisAdapter::getRedis()" could occur depending on exact caching configuration
    • Fix sentinel high-availability support could sometimes try to communicate with a "down" replica due to a missing check
    • Displaying valkey version information in redis stats block
    2.18.8 Stable Available Feb 9, 2026 · 0
    File size: 81.8 KB
    SHA-256: 4956335fe84fb4c99f7f66ef4fb124d053d1b37133639ab01a24c9ae4d821e2f
    SHA-256 verified Package valid Compatibility checked Last verified:
    • Fix showing an empty "maxmemory" redis info section in admincp
    2.18.7 Stable Available Jan 4, 2026 · 0
    File size: 81.7 KB
    SHA-256: 7895f5767386f78d84e29e44bc9e2c034339320ea7b496429a8da0953bc7b9af
    SHA-256 verified Package valid Compatibility checked Last verified:
    • Fix incorrect order of applying TLS options for a connection and using redis password authentication when not using phpredis extension
    • Fix dragonflydb support when displaying redis stats block around memory usage
      • Note; full dragonflydb functionality has not been tested
    2.18.6 Stable Available Oct 26, 2025 · 0
    File size: 84.8 KB
    SHA-256: 97fee25f6d5e89f1e6493cd8fa9e23b5a42be0e1716c13b6380b53bb18f714cb
    SHA-256 verified Package valid Compatibility checked Last verified:
    This add-on uses Credis with a custom cache provider for Redis. For best performance, install the php extension: phpredis

    You must have a Redis instance installed, this is likely not possible with shared hosting

    While XenForo 2 has a redis connector, it requires phpredis. This add-on does not.

    Feature overview
    • A pure php redis connector
    • High availability support
    • Exposes redis cache object for use for use by other add-ons
    • Implements some minor caching of forum thread counts
    • Redirect's XenForo's individual css template caching to hit redis as otherwise it causes unexpected write & deadlocking on the xf_css_cache table
    Installation

    Edit src/config.php and add:
    PHP:
    Expand Collapse Copy
    $config['cache']['enabled'] = true;
    $config['cache']['sessions'] = true;
    $config['cache']['provider'] = 'SV\RedisCache\Redis';
    $config['cache']['config'] = [
        'server' => '127.0.0.1',
        'port' => 6379,
    ];

    For details see the XenForo Manual: https://xenforo.com/docs/xf2/cache/

    @eva2000 has also written an in-depth walkthrough around setting up redis and this add-on:
    See "Xon's Redis Cache Addon For Xenforo 2.x" from:
    https://community.centminmod.com/th...on-centmin-mod-123-09beta01-lemp-stack.16060/
    Troubleshooting

    Please be aware that Redis is very sensitive to latency in a virtual environment. If repeated connection failures or protocol errors are experienced disable any Redis Persistence options.

    Options
    By default, forum thread counts are cached. In general, this is observable when moving large number of threads from one forum to another, and the total page counts are wrong.

    View attachment 477

    Redis Statistics
    Admincp dash board is extended with basic redis statistics:

    View attachment 478

    Debugger Statistics
    Include redis timings when using the _debug=1 view for a page

    Read Scaling

    With the $config['cache']['config']['load_from_replica'] option, reads can be deferred to a singular replica instance. This takes all the options of 'config' (except the replicaconfig)

    See the FAQ for configuration samples.

    High availability

    The Zend component support primary/replica setups with Redis Sentinel support. It does not support Redis multi-master clustering.
    • Additionally, this add-on implement caching of thread counts in a forum.
    • Redis Sentinel support for high-availability (see FAQ for details).
  • Discussion

    This resource has a discussion thread on the forum where you can ask questions, report issues, and talk with the author and other users.

    Join the discussion (4)

Resource information
Category XF 2.3 Addons
Author Staraddons
Date Oct 26, 2025
Latest version 2.18.9
SHA-256 45e0d86f33c40e61f1891a2c7448484facf0cfcbd72e683d6e4f81efdd47b018
Security
File integrity SHA-256 verified
SHA-256
45e0d86f33c40e61f1891a2c7448484facf0cfcbd72e683d6e4f81efdd47b018
How to verify this file
Statistics
Views 41
Downloads 1
Version 4
Developer
Staraddons
Resource author
More resources
Back
Top