Skip to content

Configuring Magento to use Redis

Redis is an open‑source, in‑memory data store that can be used as a caching system to accelerate Magento performance. By storing frequently accessed data in RAM, Redis reduces database queries and speeds up page loads. On ruachost.com, Redis availability depends on your hosting plan. Contact Ruachost support to confirm it is enabled for your account.

  • Faster page load times by caching sessions, API calls, and database queries
  • Reduced server load and improved scalability
  • Enhanced customer experience with smoother navigation

Step 1: Confirm Redis Availability

  • Where Redis is enabled, it is available via a socket:
Terminal window
/home/username/.redis/redis.sock

If this socket does not exist on your account, Redis is not enabled for your plan.

Step 2: Configure Magento 2 to Use Redis
Log in to your hosting account via SSH and navigate to your Magento installation directory:

Run the following commands (replace with your account username):

If prompted to overwrite existing configuration, type y and press Enter.
✅ Redis is now enabled for Magento on your account.

Step 3: Verify Redis Integration

  • Clear Magento cache:

    Terminal window
    bin/magento cache:flush
  • Test your site’s performance

  • Check Redis logs to confirm caching activity

  • Always back up your site before making configuration changes
  • Redis must be installed and running on the server before Magento can use it
  • If issues occur, disable Redis temporarily and troubleshoot
  • For more details, see the official Magento Redis documentation