marty
marty Yes. Just install/update the site with --wpfc, then do above to add Redis as an object cache.
ok, I already setup them by command: wo site update mysite.com --wpsubdir --wpfc, before updating site, it is in redis cache mode:
1# I am using Object Cache Pro before updating site to be Nginx Fastci cache
2# After updating, I just note that it is still in the mode of Redis cache on Nginx Helper, so I manually change it to be nginx Fastcgi cache.
Here is a screenshot of nginx helper after update:
https://prnt.sc/WEREoCt_hZRO
in Wp-config, I set following line for Redis pro:
/* Redis Pro Plugin */
define( 'WP_REDIS_CONFIG', [
'token' => 'from object pro',
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0, // change for each site
'maxttl' => 3600 * 24 * 7, // 7 days
'timeout' => 1.0,
'read_timeout' => 1.0,
'retries' => 5,
'retry_interval' => 300,
'split_alloptions' => true,
'compression' => 'zstd',
'serializer' => 'igbinary',
'async_flush' => true,
'split_alloptions' => true,
'prefetch' => true,
'debug' => false,
'save_commands' => false,
]);
define('WP_REDIS_DISABLED', getenv('WP_REDIS_DISABLED') ?: false);
Anything else did I need to do please?
By the way, Wp-Rockect eat so much CPU, Memory, and Disk I/O, so I do not want to use it for cache.
But, Wp-rocket support to achieve high score on pingdom, lighthouse, and gtmetrix.
So, is there any other way to achieve high score without using Wp-rocket, or any other peformace plugins?