In order for WordPress to interact with the Memcached extension, you need to additionally install and configure one of the many plugins. In this example, the installation and configuration of the W3 Total Cache plugin will be considered.
To install the W3 Total Cache plugin , go to the admin panel of your Wordpress site
While in the section Perfomance ? General Settings, activate 2 more options, Database Cache and Object Cache by analogy with Page Cache
Activating the Database Cache option:
Activating the Object Cache option:
Connecting the Memcached extension to the W3 Total Cache plugin:
The path to the Memcached socket must be copied from the hosting control panel in the Add Services ? Memcached ? Information section
When the path to the Memcached socket is written, click the Test button to check the correctness of the specified data. If everything is correct, the inscription Test passed will appear on a green background. If the text Test failed is displayed instead, check the correctness of the entered data. Save the changes with the Save all settings button.
The path to the Memcached socket must be additionally specified in two more sections, Database Cache and Object Cache by analogy with Page Cache .
Specify the path to the Memcached socket for the Database Cache :
Specify the path to the Memcached socket for Object Cache :
This completes the configuration of the W3 Total Cache plugin. Test your site by opening 3-5 different pages, this action will generate some cache data and information to view statistics, then check if your site interacts with Memcached .
All question categories