Arun
December 3, 2024, 10:17pm
1
Hey Jordan,
I have staging and prod in one server. Redis page caching is always MISS on the header param response for repeated refresh in incognito browser.
Going to Query monitor → under Object cache I see , relay is disabled.
On the above image I dont see Relay objects like I see on an another site on a different server on object cache plugin.
I deactivated all plugins except nginx helper, wp fail2ban, woo and rolled back to woo default theme but still seeing same.
Probably running relay across staging and prod messed up? Any ideas?
Thanks in advance!
1 Like
jtrask
December 6, 2024, 11:08pm
2
Hey Arun,
The issue is that Relay Cache is not enabled because relay.maxmemory
was set to 0.
If you want to enable Relay Cache you need to set relay.maxmemory
to a number other than 0, for example 32 which is 32MB of cache memory.
You need to edit the PHP config file /etc/php/8.0/fpm/conf.d/20-relay.ini
and update the following line
relay.maxmemory = 0
Change it to the following
relay.maxmemory = 32
You can find the following files for each PHP version.
/etc/php/8.0/fpm/conf.d/20-relay.ini
/etc/php/8.1/fpm/conf.d/20-relay.ini
/etc/php/8.2/fpm/conf.d/20-relay.ini
/etc/php/8.3/fpm/conf.d/20-relay.ini
Make sure to restart each PHP version of the FPM service.
systemctl restart php8.0-fpm
systemctl restart php8.1-fpm
systemctl restart php8.2-fpm
systemctl restart php8.3-fpm
1 Like
Arun
December 6, 2024, 11:25pm
3
Thanks Jordan! This helped
1 Like