This guide explains how to configure Redis or Memcached as a cache in Joomla.
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 System → Configuration → System.
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 Hosting → Caching.
Configure Memcached in Joomla
Open the Joomla backend and go to System → Configuration → System.
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 Hosting → Caching.