What's new
Welcome to My iptv forum

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon

XenForo Redis Cache By Xon 2.18.1 2.18.1

XenForo 2.x Free.
XenForo Redis Cache By Xon 2.18.1
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Eldorado submitted a new resource:

- Redis Cache By Xon 2.9.1

This add-on uses with a custom cache provider for (based off ). For best performance, install the php extension:

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
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 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-stats.png

Read Scaling

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

See the FAQ for configuration samples.

High availability

The Zend component support master/slave 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.


 
Relate Threads
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Eldorado updated with a new update entry:



  • Force global namespace for functions which are known to be optimizable to bytecode in php
  • Track latest upstream Credis library
  • Fix "TypeError: Argument 1 passed to XXXX must be of the type YYYY, bool given" when the decompressor library for content stored in redis unexpectedly disappears

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Fix email rendering
  • Prefix known global functions to avoid a current namespace lookup for the function.
  • Work-around for non-desirable caching behaviour when CloudFlare (or similar) is forced to cache css.php output
    • If css.php would return empty output instead return a 404 and cache in redis for at most a second
    • Prevent polluting of caches if the time-stamp is in the future
  • Improve XF Cloud support
    • config.php are not required if the stock...

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Update library used to talk to redis to version which is confirmed php 8.1 compatible
  • Improve compatibility with 3rd party add-ons with caching applied to user's online list

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Fix case where cached forum thread counts may be inaccurate due to insufficiently specific cache key

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Fix php 8.1+ error with phpredis + socket connections
  • Workaround for php 8.0.17+/8.1.4+ issue when zlib output compression & serving css

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Fix support for Redis v7+ high-availability using Redis Sentinel
  • Add support for redis auth via username/password (vs just password). Requires redis v6+
PHP:
Please, Log in or Register to view codes content!

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Fix several php 8.1 compatibility issues with Redis sentinel usage
  • Fix bad default port for raw IP when connnecting to multiple redis sentinels

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Fix possible redis compatibility issue which may result in empty css being returned instead of a 404

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Fix "Short Thread Count Expiry time" and "Thread Count Expiry time" options where swapped.
  • Support caching item-counts in @bob's Review Management System

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Initial php 8.2 compatibility update

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Fix "CredisException: ERR syntax error ", when a non-integer is passed to \XF::app()->cache->save() without php-redis installed. Known to affect Threadmark's rss caching

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Track latest upstream Credis library
  • Replace "master/slave" terminology with "primary/replica" terminology. Previous config.php setting will still work.

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



This add-on is now available on atelieraphelion.com
  • Require XenForo 2.2+
  • Require php 7.2+
  • Track latest upstream Credis library
  • Fix some errors from Redis would trigger an unhelpful php type error, instead of a more useful error message
  • Correctly implement "saveMultiple" method on the cache interface. This method is not used by XenForo (and apparently any other 3rd party).
    • Will be using in an upcoming Cache Permission Checks update

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
Xenforo updated with a new update entry:



  • Track latest upstream Credis library
  • When various bulk-thread operations happen (move/merge/delete/approve & admincp "Batch update threads"), purge the cached forum totals to avoid stale page navigation entries.
    Uses the job queue to avoid blocking the request.

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
updated with a new update entry:



  • Remove displaying if Lua is configured or not, and remove the Lua enable/disable option.
    • Lua support was first added to redis v2.6.0, and this add-on required redis v3
  • Rework caching provider code in preparation for XenForo 2.3
    • XF have documented they are switching from Doctrine/Cache to Symfony/Cache
    • I have not tested this on XF2.3, and have coded against the public interfaces of the Symfony/Cache package.
    • A future release may be required for...

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
updated with a new update entry:



  • Fix "call to a member function setRedisConnector() on null" when using a non-default advanced configuration option

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
updated with a new update entry:



  • Display maximum memory and maximum memory policy in admincp redis status information block for troubleshooting purposes

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
updated with a new update entry:



  • Fix helper code to expire/purge redis keys did not support non-main cache backends.
    • If using a separate caching backend for css, old styling was not actively expired as expected, resulting in higher memory usage
    • If 3rd party code uses expireCacheByPattern/purgeCacheByPattern function, the new nullable 'cache' parameter should be used

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins
Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,010
6,094
113
Turkey
updated with a new update entry:



  • High avaliability config default change:
    • Change default value for retry_reads_on_primary config option to true as this guards against unexpected replication delays
  • Remove unexpected differences for XF2.2 and XF2.3 support (only tested on XF2.2)
  • When displaying redis version, include the redis varaint type.
    • Known variants are keydb & dragonflydb.
    • Dragonflydb does not appear to support IO stats at the moment

 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top Posters of the Month

Online statistics

Members online
114
Guests online
529
Total visitors
643
Top