WebGee Docsالتوثيق
Performance & Caching

Enable Redis object caching

Turn on Redis in cPanel and point LiteSpeed Cache at it, so WordPress stops repeating the same database queries on every page load.

Turn on Redis object caching for a WordPress site running LiteSpeed Cache. Applies to shared and reseller hosting.

Object caching keeps the results of database queries in memory, so WordPress stops asking the database the same questions on every page load. It makes the biggest difference on sites with a lot of plugins, a large product catalogue, or a slow admin area.

Memcached is no longer available. The extension was deprecated and disabled across the platform, so Redis is the supported option — see Memcached vs Redis.

1. Enable Redis in cPanel

  1. In cPanel, open Redis.

    The Redis entry in the cPanel tools list

  2. Select Enable Redis.

    The Redis Manager page with the enable control

  3. Note the port and password shown. You need both in step 3.

    The Redis connection details, showing port and password

You can return to this page at any time to see these values again.

2. Enable the PHP extension

Redis is running, but PHP cannot talk to it until the extension is on.

  1. In cPanel, open Select PHP Version.

  2. Select Extensions.

  3. Tick redis.

    The PHP extensions list with redis selected

The change applies immediately.

3. Point LiteSpeed Cache at Redis

  1. In WordPress, go to LiteSpeed Cache → Cache → Object.

    The LiteSpeed Cache object cache settings

  2. Set the following:

    SettingValue
    Object CacheOn
    MethodRedis
    Host127.0.0.1
    Portthe port from step 1
    Usernameleave empty
    Passwordthe password from step 1
  3. Select Save.

Check it worked

On the same Cache → Object page, LiteSpeed shows a connection status. It should read Passed.

If it does not, work through these in order:

  • Connection refused — Redis is not running. Re-check step 1.
  • Class 'Redis' not found — the PHP extension is off. Re-check step 2.
  • Authentication failed — the password is wrong. Copy it again from cPanel → Redis; it is regenerated when Redis is disabled and re-enabled.

If your site later shows an OOM error

Redis has a memory ceiling per account. When a site outgrows it you will see OOM command not allowed when used memory > 'maxmemory'. See Redis memory limits.

On this page