Use the Redis Object Cache plugin
After installing Redis and the PHP Redis client extension, enable Redis object caching in WordPress using the steps below.
- Log into your WordPress dashboard.
- Click on Plugins in the sidebar.
- Click Add new plugin.
- Search for “Redis Object Cache” in the Search plugins box.
- Click Install.
- Click Activate.
- In the WordPress Settings menu, click Redis.
- Click Enable Object Cache.