Redis Cache By Xon

Redis Cache By Xon 2.18.2

No permission to download
I've been testing something with multiple cache implementations and noticed there's perhaps an issue with Xon Redis.

Specifically with deleteMultiple()

If a cache namespace is used, the namespace is NOT prefixed to the keys that are requested for deletion with deleteMultiple(). This results in no keys being deleted.

Key Difference

Native Redis: Automatically applies the namespace to deleteMultiple via normalizeKey

XonRedis: Expects namespaced keys for deleteMultiple, requiring manual prefixing or using delete (which applies getNamespacedId)

I'm just curious if this was intentional or not.

It gets a bit hairy because Xon Redis uses a different namespace mechanism depending on whether a namespace is specified or not.
 
I've been testing something with multiple cache implementations and noticed there's perhaps an issue with Xon Redis.

Specifically with deleteMultiple()

If a cache namespace is used, the namespace is NOT prefixed to the keys that are requested for deletion with deleteMultiple(). This results in no keys being deleted.
I thought I fixed this bug, is this with XF2.3?
 
I've been testing something with multiple cache implementations and noticed there's perhaps an issue with Xon Redis.

Specifically with deleteMultiple()
You may want to look at how ExpireRedisCacheByPattern::enqueue and PurgeRedisCacheByPattern::enqueue methods which queue a job todo the bulk of the work. These implement pagable adjusting the TTL or deleting items out of the cache.

This is actually used when invalidating css and such to avoid blocking and schedule things to be expire in 5-10 minutes instead of sticking around not being used.
 
Last edited:
I cant see the redis settings on the ACP main page, its not showing the details even though the installation was done and its all set up as expected.
 
You need to configure the config.php entry, not just install the add-on for this add-on to work
 
We use Redis for Wordpress so it’s definitely online and working, it seems it’s functional just doesn’t show the redis data in the ACP.
Check AdminCP => Tools => Redis Info or the /admin.php?redis-info/ URL.

If this shows up, it means there is a template modification conflict which is causing the additions to fail to be shown
 
Check AdminCP => Tools => Redis Info or the /admin.php?redis-info/ URL.

If this shows up, it means there is a template modification conflict which is causing the additions to fail to be shown

This was it :) After much digging around our custom add-ons etc its now working as expected.
 
  • Like
Reactions: Xon
phpredis is better than igbinary
They're completely different things; so one can't really be better than the other. They are both extensions though. Stick with both, one for the layer between php and redis (phpredis), and the other one is an alternate serializer for the data stored inside of redis.
 
They're completely different things; so one can't really be better than the other. They are both extensions though. Stick with both, one for the layer between php and redis (phpredis), and the other one is an alternate serializer for the data stored inside of redis.

Okay, any config.php recommendations? Should I use php or igbinary as serializer? And I need the best config. Should I use replicas or sentinel etc.
 
Back
Top Bottom