1. First part is done in terminal under root account:
Code: Select all
apt update
apt install -y redis-server
apt install -y php-redis php5.6-redis php7.0-redis php7.1-redis php7.2-redis php7.3-redis php7.4-redis php8.0-redis php8.1-redis # depending of the version you have/need
mcedit /etc/redis/redis.conf
find: supervised
set: supervised systemd
find: save 900 1
comment all 'save' directives
uncomment: save ""
find: maxmemory
set: maxmemory [bytes] (or '2g')
add: maxmemory-policy allkeys-lru
systemctl restart redis
redis-cli
info memory
- Install and activate this plugin: Redis Object Cache (by Till Krüss)
- Go to Settings/Redis
- Click Enable Object Cache
- If you see this, that means that you successfully installed Redis on your WordPress website: