Activate or Deactivate Object Cache
In a standard WordPress installation, WordPress saves transients and other cached content in the same MariaDB database with the rest of the site data. This data can be optimized by enabling object cache. Instead of retrieving transients from the database, RAM memory can be used for transient storage. To achieve this, Seravo uses Redis for saving this type of data, making your site faster.
Redis Enabled at Seravo by Default
By default, Redis is enabled at Seravo's WordPress hosting and upkeep, so you need not do additional configurations to enable it. You can also view Redis and other cache status on the Seravo plugin's "Site Status" page.
Redis' settings are defined in wp-config.php file. If you need to disable Redis for whatever reason, you can do this with the help of Seravo plugin, or by renaming the object-cache.php file with the following commands:
cd /data/wordpress/htdocs/wp-content mv object-cache.php object-cache.php.off
Object cache can be enabled again by reversing these changes: just rename the file again with command
mv object-cache.php.off object-cache.php. After this change it is recommended to run the command
wp-purge-cache to make sure all the old server-side data is purged.
Ensuring Object Cache Works
The functionality of the object cache can be viewed with the command
redis-cli monitor. For more information and Redis commands, refer to Redis documentation.