My favorite caching solution lately is Redis. It is crazy efficient and fast.
I am using Redis on Ubuntu 20.04 with PHP 7.4. It works with WordPress like candy…
I use Ubuntu so in Ubuntu SSH or any other Debian distro really just uses these commands;
First
apt install redis-server
then
apt install php-redis
start the Redis
service redis-server start
don’t forget to add/open Redis port on the firewall
ufw allow 6379
and check if it is working and enabled
service redis-server status
That’s it.
Use a Redis-supported Plugin for WordPress. I recommend the Lite Speed Cache plugin.
Done.