• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Wordpress + Redis

jojo

New Pleskian
Hi,

In my ongoing effort to reach an acceptable performance, I'm starting a fresh server with plesk and trying to use Redis object caching with wordpress.

I believe I have setup everything correctly but obviously Im missing something because Redis is not caching anything.

I'm using Redis Object Cache plugin, and here is the diagnostic:

Status: Connected
Redis Version: 4.0.9
Client: PhpRedis (v5.1.1)
Drop-in: Valid
Ping: 1
Redis Extension: 5.1.1
Predis Client: 1.1.1
PHP Version: 7.3.13
Multisite: No
Global Prefix: "k02AT_"
Blog Prefix: "k02AT_"
WP_REDIS_CLIENT: "pecl"
WP_CACHE_KEY_SALT: "---.com"
Global Groups: {
"0": "blog-details",
"1": "blog-id-cache",
"2": "blog-lookup",
"3": "global-posts",
"4": "networks",
"5": "rss",
"6": "sites",
"7": "site-details",
"8": "site-lookup",
"9": "site-options",
"10": "site-transient",
"11": "users",
"12": "useremail",
"13": "userlogins",
"14": "usermeta",
"15": "user_meta",
"16": "userslugs",
"33": "blog_meta"
}
Ignored Groups: [
"counts",
"plugins",
"themes"
]
Unflushable Groups: []
Dropins:
- Redis Object Cache Drop-In v1.5.5 by Till Krüss
Plugins:
- Fast Velocity Minify v2.7.7 by Raul Peixoto (Active)
- Redis Object Cache v1.5.5 by Till Krüss (Active)
- WooCommerce v3.8.1 by Automattic (Active)
- WooCommerce Admin v0.23.2 by WooCommerce (Active)
- WooCommerce Stripe Gateway v4.3.1 by WooCommerce (Active)


When running redis-cli ping I get PONG
When I run redis-cli monitor I get OK, but thats about it, it doesn't return anything else, which means its not caching anything. There is no performance improvement at all with or without running Redis.

Php 7.3.13 FPM application served by nginx.
nginx fast cgi caching is disabled.

define('WP_CACHE', true);
and
define( 'WP_REDIS_CLIENT', 'pecl' );
added to wp-config.php.


Anyone can chime in?

Thanks!
 
Have you tried to copy the object-cache.php file from the /plugins/redis-cache/includes/ directory to the /wp-content/ directory?
 
Yes it started working, the only issue im facing is that I'm not noticing any performance improvement, like really nothing. Redis-cli monitor now spits logs showing that its doing stuff, however when performing load test, enabling redis adds an overhead and slows down the server by an extra 400ms for every 30 concurrent users.

Edit: It also seems like it successfully caches Mysql queries, but not much of PHP processing.
 
Last edited:
My project using Litespeed cache plugin (PHP V7.4) - Redis Extension: Enabled but Connection Test: Failed

Screenshot

Please help me.

Thank you.
 
Last edited by a moderator:
Back
Top