The object cache (Redis) in Loopia Boost is mainly used to cache responses from the database that your website uses. For pages that query the database heavily and where the responses are the same, the object cache can significantly speed up the site.
How do I enable the object cache?
The object cache is disabled by default and is currently activated manually by our support team. Contact support@loopia.com to enable it for your account. In the future this will be controlled directly from Loopia Customer zone. When the object cache is enabled, you need to program your site to save data in the cache. For many CMS platforms (WordPress, Joomla, etc.) there are plugins that do this automatically.
How do I manually connect to the object cache?
You connect to Redis using a UNIX socket whose path is available in the server variable $_SERVER['LOOPIA_REDIS_SOCK'].
How do I use the object cache with WordPress?
To pair the object cache with WordPress, we recommend the Redis Object Cache plugin. When the plugin is activated, add the following lines to the wp-config.php file:
define('WP_REDIS_CLIENT', 'pecl');
define('WP_REDIS_SCHEME', 'unix');
define('WP_REDIS_PATH', $_SERVER['LOOPIA_REDIS_SOCK']);