We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.13.1.2.3. Setting up Memcached in WordPress

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

To enable support Memcached in WordPress using the WP-FFPC plugin:
  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 "Cache type"And make sure that opposite"Select backend"Selected"PHP Memcached».
    2. Switch to the "Backend settings».
    3. In field "Hosts»Specify /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.
To enable support Memcached in WordPress using the W3 Total Cache plugin:
  1. Openup Adminpanel site.
  2. Install and activate the plugin W3 Total Cache.
  3. Go to the section "Performance → General Settings».
  4. In the block "Page Cache»:
    1. Opposite "Page Cache"Check the box next to"Enabled».
    2. Opposite "Page Cache Method»Select«Memcached».
    3. Save your changes.
  5. Go to the section "Performance → Page Cache».
  6. In the block "Advanced»:
    1. Opposite "Memcached hostname:port / IP:port»Specify /home/example/.system/memcache/socket:0substituting instead example hosting account namein which the site is hosted.
    2. Click "Test". If everything is in order, the green inscription “Test passed».
    3. Save your changes.
  7. Follow the same steps for "Database Cache"And"Object Cache».
  8. Check the site is working.