Last update at :2024-02-07,Edit by888u
What should I do if WordPress becomes laggy the more I use it? Tutorial on how to enable Redis cache acceleration in WordPress on CentOS 7 system. What is Redis used for? Redis is an extension of PHP. Its main purpose is to cache MySQL query results to reduce the number of queries. For novices, you only need to know that it is a caching function that can improve the running speed of the website to deal with the problem of WordPress becoming more and more stuck as it is used.
How to install Redis extension?
If you use the Pagoda environment, you can find the Redis service directly in the software store of the Pagoda interface:
Click to install and enable it.
Note: If your environment is configured with CentOS 7.0, only the PHP 5.X version can support Reids expansion. It is recommended that you configure the CentOS 7.3 version. If you are using the set I recommend, then you don’t have to worry too much. PHP can directly choose versions 7.0 – 7.2.
Additional explanation
If you are not in a pagoda environment, you can directly use the command to install the Redis extension. Open the command interface through Putty or Xshell and execute the following code:
apt-get install redisInstall the corresponding WordPress plug-in
You only need to find a Redis Object Cache plug-in in WordPress plug-ins, install and enable it. The specific operation methods are as follows:
WP backend > Plug-in > Install plug-in > Search for "Redis Object Cache" > Install and enable
Note: Some templates may conflict when enabling Redis. It is recommended to read the template description in detail. Or consult the template author directly to determine whether enabling Redis will affect your template theme.
Plug-in enables Redis
Enter the plug-in settings interface (you can find the "settings" option directly in the plug-in list)
Click the "Enable Object Cache" button.
The above completes the complete process of installing WordPress and enabling Redis expansion acceleration.
SiteGround foreign trade hosting recommendation
SiteGround celebrates its 18th anniversary. Its products include cloud virtual hosting, WordPress hosting, WooCommerce hosting, and cloud servers.
Plan | Promotional price | Original price | Purchase |
Startup | $3.99/month | $14.99/month | Direct access |
GrowBig | $6.69/month | $24.99/month | Direct access |
GoGeek | $10.69/month | $39.99/month | Direct access |
Recommended site search: Korean high-defense server, Hong Kong server rental, domain name registration service website, Hong Kong high-defense server rental, US server rental, .net virtual host reverse IP check, rent server, Registration number query, Chinese domain name query,
发表评论