Make your website faster with Redis

Table Of Contents

Redis keeps frequently used data in memory, so your site doesn't have to fetch it from the database every time. WordPress and web shops in particular become noticeably faster.

Here's how #

  1. Log in to DirectAdmin: open your plan in your client area and click Open DirectAdmin. You're signed in right away.
  2. Go to Advanced Features → Redis and turn on Redis.
  3. Note down the path to the socket file (something like /home/user/.redis/redis.sock).
  4. In WordPress, install the Redis Object Cache plugin.
  5. In wp-config.php, above the line "That's all, stop editing", add: define( 'WP_REDIS_SCHEME', 'unix' ); and define( 'WP_REDIS_PATH', '/home/user/.redis/redis.sock' ); with your path.
  6. In WordPress, click Enable Object Cache under Settings → Redis.

Redis works per plan with 256 MB of memory.

Stuck? Open a ticket, we're happy to help.

What are your feelings