Skip to content

Instantly share code, notes, and snippets.

@jeanpauldejong
Created July 27, 2025 20:48
Show Gist options
  • Select an option

  • Save jeanpauldejong/695a3b82fb47346b572b228e131eabc5 to your computer and use it in GitHub Desktop.

Select an option

Save jeanpauldejong/695a3b82fb47346b572b228e131eabc5 to your computer and use it in GitHub Desktop.
Redis Object Cache for WordPress

Setup Redis Object Cache for WordPress

Install Redis Server

apt update
apt install redis-server -y

Check Redis is running: systemctl status redis

Ensure it is enabled at boot: systemctl enable redis

Harden Redis

Optional but recommended

Edit the configuration: nano /etc/redis/redis.conf

Set:

supervised systemd
bind 127.0.0.1 ::1

Optionally set a password: requirepass YOUR_STRONG_PASSWORD

Restart: systemctl restart redis

Install PHP Redis extention

apt install php-redis -y

The reload: systemctl reload php8.3-fpm

Install Redis Object Cach Plugin in WordPress

Search for: Redis Object Cach by Till Krüss

Then Tools -> REdis, click Enable Object Cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment