How does Redis or Memcached work with Joomla?

This guide explains how to configure Redis or Memcached as a cache in Joomla.

Note: This guide refers exclusively to the control panel.
Note: This guide is based on an older Joomla version. Depending on the Joomla version used, labels, menu items, or options may vary.

Prepare socket path

For setting up Redis or Memcached, you first need the appropriate socket path. You can find this in the control panel under the Web Hosting section under Caching.

If no Redis or Memcached cache pool has been created yet, set it up first: How can I create a Redis or Memcached cache pool? 

Configure Redis in Joomla

Open the Joomla backend and go to SystemConfigurationSystem.

In the Cache section, configure the following values:

  • Cache: Enabled - normal caching
  • Cache Handler: Redis
  • Platform-specific caching: No
  • Cache Time: 15
  • Persistent Redis: Yes
  • Redis Server Host: {YOUR_SOCKET_PATH}
  • Redis Server Port: 0
  • Redis Server Authentication: leave empty
  • Redis Database: 0

Replace {YOUR_SOCKET_PATH} with the socket path shown to you in the control panel under Web HostingCaching.

Configure Memcached in Joomla

Open the Joomla backend and go to SystemConfigurationSystem.

In the Cache section, configure the following values:

  • Cache: Enabled - normal caching
  • Cache Handler: Memcached (Experimental)
  • Platform-specific caching: No
  • Cache Time: 15
  • Persistent Memcached: Yes
  • Memcached Compression: No
  • Memcached Server: {YOUR_SOCKET_PATH}
  • Memcached Port: 11211

Replace {YOUR_SOCKET_PATH} with the socket path shown to you in the control panel under Web HostingCaching.