Enabling redis cache plugin slowdown the pages
-
Hi!
I’m trying to enable Redis cache plugin on the WP website and receive a strange behavior. Enabling the plugin decreases the number of SQL queries, but doubles the page generation time (we use the “Query Monitor” plugin to check the values). Do you have any ideas why is this happening?
The Redis Object Cache Dashboard reports the average time ~900ms. But at the same time I’ve checked the latency to the Redis server with “redis-cli –latency” and it’s not above 5ms. This is the fully independent test setup (wp and redis servers) and hasn’t any unrelated workload that can affect the results.Status: Connected Client: PhpRedis (v5.3.4) Drop-in: Valid Disabled: No Ping: 1 Errors: [] PhpRedis: 5.3.4 Predis: Not loaded Credis: Not loaded PHP Version: 7.3.29-1+ubuntu20.04.1+deb.sury.org+1 Plugin Version: 2.0.21 Redis Version: 6.0.5 Multisite: Yes Metrics: Enabled Metrics recorded: 69 Filesystem: Working Global Prefix: "" Blog Prefix: 32 WP_REDIS_HOST: <our-redis-host-dns-name> WP_REDIS_PORT: 6379 WP_REDIS_DATABASE: 0 WP_REDIS_TIMEOUT: 1 WP_REDIS_READ_TIMEOUT: 1 Global Groups: [ "blog-details", "blog-id-cache", "blog-lookup", "global-posts", "networks", "rss", "sites", "site-details", "site-lookup", "site-options", "site-transient", "users", "useremail", "userlogins", "usermeta", "user_meta", "userslugs", "redis-cache", "blog_meta" ] Ignored Groups: [ "counts", "plugins", "themes", "acf" ] Unflushable Groups: [] Drop-ins: [ "advanced-cache.php v by ", "Query Monitor Database Class v by ", "Redis Object Cache Drop-In v2.0.21 by Till Krüss", "sunrise.php v by " ]
The topic ‘Enabling redis cache plugin slowdown the pages’ is closed to new replies.