Welcome to .:: AE Community™ ::.

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?
Redis Cache By Xon

Addons XF Redis Cache By Xon 2.18.5

Phiên bản XF tương thích
2.2; 2.3
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:
<span>$config</span><span>[</span><span>'cache'</span><span>]</span><span>[</span><span>'enabled'</span><span>]</span> <span>=</span> <span>true</span><span>;</span><br><span>$config</span><span>[</span><span>'cache'</span><span>]</span><span>[</span><span>'sessions'</span><span>]</span> <span>=</span> <span>true</span><span>;</span><br><span>$config</span><span>[</span><span>'cache'</span><span>]</span><span>[</span><span>'provider'</span><span>]</span> <span>=</span> <span>'SV\RedisCache\Redis'</span><span>;</span><br><span>$config</span><span>[</span><span>'cache'</span><span>]</span><span>[</span><span>'config'</span><span>]</span> <span>=</span> <span>[</span><br> <span>'server'</span> <span>=</span><span>&gt;</span> <span>'127.0.0.1'</span><span>,</span><br> <span>'port'</span> <span>=</span><span>&gt;</span> <span>6379</span><span>,</span><br><span>]</span><span>;</span>
For details see the XenForo Manual: AEtot24h

@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:
community.centminmod.com
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-1.webp




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

Redis Cache By Xon-2.webp



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

Components licenced under; New BSD
  • Credis
Components licenced under; MIT Licence
  • XenForo Add-on code
Contributing features or bug fixes
Please create a GitHub Pull request via the "More Information" link.

Contributions

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

Please contact me if you wish for different licencing arrangements.
[XenCustomize] Events Manager
Premier Addons  [XenCustomize] Events Manager  2.3.7.1
Gemini post alert
Premier Addons  Gemini post alert  1.4
Meta
ADMINISTRATIVE
Joined
Your content
1,077
Reaction score
352
Trophy points
83
2.18.5 Version
0 Downloads
7 Views
First release
Last update
0.00 star(s) 0 ratings
Author
Meta
Downloads
0
Views
7
First release
Last update

Ratings

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top