thanks, I’m pretty confident Redis object cache is working. I checked it was running by using redis-cli monitor in SSH terminal. My Query Monitor also shows a hit rate of over 90% with the total number of database queries cut down by a third. (from about 330 to 200, although I’m not sure if that’s enough. I’ve copied and pasted the query monitor results below). With everything confirmed to be working, page loading still is slower with the object cache on than without, by about 0.5 second to 1 second. This is confirmed in webpagetest as well, using nine runs. My bare eyes can also feel it since I access these pages very very frequently.
* my lightest page with the cache on:
Page Generation Time
1.8370s
0.1% of 1,800s limit
Peak Memory Usage
85,442,544 bytes (81.5 MB)
4.0% of 2,048 MB server limit
4.0% of 2,048 MB WordPress limit
Database Queries
0.0492s
HTTP API Calls
0.0178s
Object Cache
93.0% hit rate (11,792 hits, 888 misses)
Persistent object cache plugin in use
Opcode Cache
Opcode cache in use: Zend OPcache
Object Cache
Status
Connected
Hit Ratio
93%
Hits
11795
Misses
887
Size
7.88 MB
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
* my lightest page with the cache OFF:
Page Generation Time
1.1870s
0.1% of 1,800s limit
Peak Memory Usage
94,613,304 bytes (90.2 MB)
4.4% of 2,048 MB server limit
4.4% of 2,048 MB WordPress limit
Database Queries
0.0772s
HTTP API Calls
None
Object Cache
Persistent object cache plugin not in use
The Redis object cache extension for PHP is installed but is not in use by WordPress. You should install a Redis plugin.
Opcode Cache
Opcode cache in use: Zend OPcache
* my heaviest page with the cache on:
Page Generation Time
2.6510s
0.1% of 1,800s limit
Peak Memory Usage
101,029,304 bytes (96.3 MB)
4.7% of 2,048 MB server limit
4.7% of 2,048 MB WordPress limit
Database Queries
0.0519s
HTTP API Calls
None
Object Cache
96.3% hit rate (24,046 hits, 917 misses)
Persistent object cache plugin in use
Opcode Cache
Opcode cache in use: Zend OPcache
Status
Connected
Hit Ratio
96.3%
Hits
24046
Misses
917
Size
9.93 MB
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
Non-persistent Groups
counts
plugins
themes
Metadata
Client PhpRedis (v5.3.5)
Redis Version 6.2.6
* my heaviest page with the cache OFF:
Page Generation Time
2.1662s
0.1% of 1,800s limit
Peak Memory Usage
116,432,680 bytes (111.0 MB)
5.4% of 2,048 MB server limit
5.4% of 2,048 MB WordPress limit
Database Queries
0.0728s
HTTP API Calls
None
Object Cache
Persistent object cache plugin not in use
The Redis object cache extension for PHP is installed but is not in use by WordPress. You should install a Redis plugin.
Opcode Cache
Opcode cache in use: Zend OPcache
I truly hope this cache will work and I can also reap the benefit of Redis object cache. It baffles me that with the number of database queries cut, the page loads slower. Could this be due to some conflict with another type of cache, such as Opcode? By the way WP Rocket is turned off during these tests. Any thoughts would be nice. Thanks.