Data isn’t cached in Redis
-
Hello,
I’ve just installed fresh WP install, afterwards I:
1. Installed LiteSpeed Cache plugin.
2. Activated Object Cache using Redis and input correct settings (Redis is run on port and not via socket system).
3. Enabled PHP “Redis” extention in cPanel > Select PHP Version.In LS Plugin Dashboard I can see that everything is ok:
Redis Extension:?Enabled
Connection Test:?Passed?Learn MoreWhen I visit the WP site in incognito, the data is not being saved in Redis Cache (SSH test below):
# redis-cli keys “*”
(empty list or set)
If I enable debug mode in “.litespeed_conf.dat“, everything looks well (bellow some info from debug.log):
08/07/24 14:00:24 – Init Redis connection
08/07/24 14:00:24 – connecting to localhost:6379
08/07/24 14:00:24 – Connected
08/07/24 14:00:24 – Init Redis connection
08/07/24 14:00:24 – connecting to localhost:6379
08/07/24 14:00:24 – ConnectedSo, to sum up, I use:
1. VPS with cPanel / Cloudlinux / LiteSpeed Site Owner Plus license (although the later isn’t relevant to Redis Cache).
2. Have localy installed Redis instance.
3. Default WP (6.6.1 Core).
4. LiteSpeed Cache plugin with default caching settings + Redis Object cache enabled in “Cache” settings.
I’ve tried:
1. Changing DB ID (13 -> 4),
2. Changing PHP (8.2 -> 7.4),
and then revisiting the page, but the problem is still there – data isn’t cached in Redis database.
I then switched to Redis Object Cache plugin and it works perfectly.Would you be so kind and tell me what I’m doing wrong because I want to use LS Cache plugin for normal and object cache.
Kind regards,
AnzeThe page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.