Chapter 8. How-to Guides

Store the Cache in Redis, Memcached or APCu Pro

JCH Optimize keeps its cache in files by default, which works everywhere. If your server offers a memory store such as Redis, Memcached or APCu, using it can make cached pages a little faster still and reduce disk activity.

  1. On the settings page, General tab, Cache Storage section, choose the store in Storage Adapter. Stores your server doesn't support are shown but can't be selected.

  2. For Redis or Memcached, enter the server details your host gave you: host (or, for Redis, the path to a socket), port and, for Redis, the password and database number.

  3. Save, then check that pages still load and the dashboard's cache size information still appears.

Figure 8.7. The Cache Storage settings
The Cache Storage section of the General tab with Redis selected and its server details entered.

Joomla

The Cache Storage section of the General tab with Redis selected and its server details entered.

WordPress


If the store can't be reached, JCH Optimize falls back to files automatically.