2.13.1.2.3. Setting up Memcached in WordPress

So that WordPress can use Memcached, install and configure one of the specialized plugins.

  1. Openup Adminpanel site.
  2. Install and activate the plugin WP-FFPC.
  3. Edit config file site wp-config.php and add to its beginning (right after <?php) a line like this:
    define ( 'WP_CACHE', true );
  4. In the admin panel of the site, go to the section "Settings → WP-FFPC":
    1. Check the tab "Cache type" and make sure the opposite is "Select backend" selected "PHP Memcached".
    2. Switch to tab "Backend settings".
    3. In field "Hosts" indicate /home/example/.system/memcache/socket:0substituting instead example hosting account namein which the site is hosted.
    4. Save your changes. If everything is in order, at the top of the section opposite "Backend status" should display "up and running".
  5. Check the site is working.
  1. Openup Adminpanel site.
  2. Install and activate the plugin W3 Total Cache.
  3. Go to section "Performance → General Settings".
  4. In the block "Page Cache":
    1. Against "Page Cache" check the box next to "Enabled".
    2. Against "Page Cache Method" choose "Memcached".
    3. Save your changes.
  5. Go to section "Performance → Page Cache".
  6. In the block "Advanced":
    1. Against "Memcached hostname:port / IP:port" indicate /home/example/.system/memcache/socket:0substituting instead example hosting account namein which the site is hosted.
    2. Clickon "Test"... If everything is in order, a green inscription should be displayed "Test passed".
    3. Save your changes.
  7. Follow the same steps for "Database Cache" and "Object Cache".
  8. Check the site is working.
Content