Redis is an open-source memory object caching system that web sites can use to help accelerate page load times. Redis works by caching in RAM frequently accessed data, such as the results of API calls, database queries, and more. It is frequently used as an alternative to memcached, another caching system.
By adding Redis caching to WordPress, you can help improve your site's performance and page load times.
There are several plugins available for integrating Redis caching with WordPress. This article describes how to do so with two of the most popular Redis plugins, Redis Object Cache and WP Redis.
You can use whichever plugin you prefer (and you should only use one of these plugins at a time, not simultaneously). With Redis Object Cache, you can do all configuration through the WordPress UI. For WP Redis, you use the command line to complete the configuration.
The Redis Object Cache plugin enables you to easily set up your WordPress site to use Redis.
To install and configure Redis Object Cache on your WordPress site, follow these steps:
Locate the Redis Object Cache section, and then click Install Now:
When installation is complete, click Activate. The Redis Object Cache page appears:
Click Enable Object Cache. When you see green checkmarks for Status, Drop-in, and Filesystem, Redis is activated and running for WordPress:
You do not need to do anything further to take advantage of performance improvements from Redis caching. The following options are available:
To install and configure WP Redis on your WordPress site, follow these steps:
Locate the WP Redis section, and then click Install Now:
To enable the object cache, type the following command:
wp redis enable
You do not need to do anything further to take advantage of performance improvements from Redis caching. To view status information about the object cache, type the following command:
wp redis info
To list all of the keys in the object cache, type the following command:
redis-cli KEYS '*'
To clear the entire cache at once, type the following command:
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Usamos cookies para personalizar o site para você e para analisar o uso do nosso site. Você demonstra que concorda com isso ao clicar em "Eu concordo" ou ao continuar usando este site. Mais informações sobre cookies podem ser encontradas em nossa Política de privacidade.