Pagoda panel installs Memcached cache to accelerate wordpress

888u

Last update at :2024-05-19,Edit by888u

Enabling caching is a method often used to speed up WordPress. In addition to special plug-ins for static caching, you can also use Memcached for memory caching. The Pagoda panel integrates Memcached, which greatly reduces the difficulty of use. Today Let’s record how to use the Pagoda panel to configure Memcached cache for wordpress:

Pagoda panel installation MEMCACHED environment

You need to install two extensions, one is Memcached itself, and the other is the Memcached extension of PHP. Note that memcached is not memcache. There is only one letter difference between the two but the configuration method is different.

Install Memcached

First install Memcached, Pagoda Backend – Software Management – ​​Running Environment – ​​Install Memcached, it will take some time to install

php install Memcached

Select settings in php - install extension - memcached, pay attention to select the one ending with d

This process is very fast, and the environment of the pagoda panel is now ready.

WORDPRESS program configuration MEMCACHED

After the environment is installed, you can officially configure Memcached for the website.

Memcached plug-in

First we install a wordpress Memcached file

Download address: https://github.com/tollmanz/wordpress-pecl-memcached-object- cache

After the download is completed, we upload the object-cache.php file to the wp-content directory of wordpress

batcache plug-in

After installing the Memcached plug-in, if you still want to continue optimizing, you can choose the batcache plug-in, which is the same as the Memcached plug-in installation method

Download address https://github.com/Automattic/batcache

After the download is complete, upload advanced-cache.php to the wp-content directory

At this point, the plug-in installation is complete. At this time, the directory structure of your wp-content folder is as shown below

Finally, add the following statement to wp-config.php in the root directory of the website to enable caching

define('WP_CACHE', true);

Optimization effect

The host notes tried the installation, and the overall effect is good. The speed increase can be said to be nearly doubled, especially after installing Memcached, the speed is significantly improved, while the improvement of batcache is not obvious

Recommended site searches: domain name information, US vps host, domain name resolution query, Wanwang registered domain name, overseas virtual host space, domain name query, dual-line host rental, special price space, Alibaba Cloud free virtual host, US independent host, < /p>

Pagoda panel installs Memcached cache to accelerate wordpress

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码