Enable Object Cache in WordPress with Redis


Recommended Posts

Hello! Can you please confirm which settings should we use in order to enable Object Cache in our WordPress sites with Redis?

Following these instructions (https://blog.hawkhost.com/2017/10/20/introducing-cpanel-application-manager-redis-support/), in our HawkHost CPanel:

  • Server Application Manager -> Redis enabled.
  • PHP Selector | extensions -> Redis active.

In our WordPress plugins, I have set up these settings:

  • Method: Redis
  • Host: /home/ourusername/.applicationmanager/redis.sock
  • Port: 0 (As HawkHost uses UNIX)
  • Default Object Lifetime: 360 seconds
  • Password: (leave blank)
  • Redis Database ID: 0

Also these options enabled:

  • Persistent Connection: ON
  • Store Transients: ON

I have tested with https://wordpress.org/support/plugin/litespeed-cache/ and https://wordpress.org/plugins/redis-cache/. But with both, right now I'm getting that Redis Extension: Disabled/Not Found, so any assistance would be really appreciated. Many thanks!

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.