Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.14.1.2.3. Configure Memcached in WordPress
To use Memcache(d) in WordPress, install and configure one of the specialized plugins.
W3 Total Cache
- Open the WordPress admin panel.
- Install and activate the W3 Total Cache plugin.
- Go to the "Performance → General Settings" section.
- In the "Page Cache" block:
- In the "Page Cache" field, enable "Enabled".
- In the "Page Cache Method" field, select "Memcached".
- Save the changes.
- Go to the "Performance → Page Cache" section.
- In the "Advanced" block:
- In the "Memcached hostname:port / IP:port" field, specify
/home/example/.system/memcache/socket:0(instead ofexample, use hosting account name, where the site is hosted). - Click "Test". If successful, "Test passed" should appear.
- Save the changes.
- Configure "Database Cache" and "Object Cache" in the same way.
- Check the site operation.
WP-FFPC
Attention!
The plugin has not been developed for a long time and may be incompatible with new versions of WordPress and PHP.- Open the WordPress admin panel.
- Install and activate the WP-FFPC plugin.
- Edit the site configuration file
wp-config.phpand add the following line at the beginning (right after<?php):define ( 'WP_CACHE', true ); - Specify the plugin settings in the "Settings → WP-FFPC" section:
- On the "Cache type" tab:
- In the "Select backend" field, select "PHP Memcached".
- On the "Backend settings" tab:
- In the "Hosts" field, specify
/home/example/.system/memcache/socket:0(instead ofexample, use hosting account name, where the site is hosted). - The "Authentication: username" and "Authentication: password" fields must be empty.
- Save the changes. If successful, "up and running" should appear at the top of the section near "Backend status".
- Check the site operation.
(1)