Theme editor

Redis Cache By Xon

Redis Cache By Xon

Redis Cache By Xon 2.18.9

XF 2.3 Addons · by Staraddons
1 Downloads 37 Views 0 Version
This add-on uses Credis with a custom cache provider for Redis. For best performance, install the ph
Price
Free
There are no downloadable versions available for this resource yet.

Overview Version (0) Discussion (4) License

  • 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
    There are no downloadable versions available for this resource yet.
  • 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)

  • License Terms

    By purchasing this resource, you are granted a license to use it on one (1) site, for as long as your license remains valid. You are not purchasing ownership of the underlying code.

    How your license works
    • Your license is checked automatically in the background. This never affects your site's visitors.
    • As long as your license is valid, this resource keeps working normally — even if our license server is briefly unreachable, a temporary network issue will never disable it.
    • Your license is bound to your site's domain the first time it's used.

    Moving to a new domain?
    Contact us and we'll move your license for you.

    What's included
    Updates and support for the period stated on this resource's page (see the Version tab for the current release).

    What's not allowed
    • Sharing your license with others, or using it on more than one site at a time
    • Removing or bypassing the license check in the code
Resource information
Category XF 2.3 Addons
Author Staraddons
Date Oct 26, 2025
Latest version 2.18.9
Statistics
Views 37
Downloads 1
Version 0
Developer
Staraddons
Resource author
More resources
Back
Top