What's new

Welcome to KodeBlend Forums

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?

Ask question

Ask questions and get answers from our community

Answer

Answer questions and become an expert on your topic

Contact us

Contact the site administrator directly.

Telegram

Join Telegram Channel to stay updated.
ifastnet
Resource icon

Redis Cache By Xon v2.18.0

No permission to download
This add-on uses
Please, Log in or Register to view URLs content!
with a custom cache provider for
Please, Log in or Register to view URLs content!
. For best performance, install the php extension:
Please, Log in or Register to view URLs content!


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:
Please, Log in or Register to view codes content!

For details see the XenForo Manual:
Please, Log in or Register to view URLs content!


@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:
Please, Log in or Register to view URLs content!


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
Please, Log in or Register to view URLs content!
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-options.png




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

redis-stats.png



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

View attachment 1384
Author
KodeBlend
Downloads
0
Views
146
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from

Latest updates

  1. Redis Cache By Xon

    Restore XF2.1 support
  2. Redis Cache By Xon

    Fix high availability support where css updates would be sent to a possible readonly replica...
  3. Redis Cache By Xon

    XF2.3 compatibility update A bug in XenForo 2.3 Beta 1 (Fixed in beta 2) prevents XenForo from...
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top
Whatsapp Support
Start a Conversation
Hi! Click one of our member below to chat on Whatsapp
The team typically replies in a few minutes