Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 599 Bytes

File metadata and controls

24 lines (20 loc) · 599 Bytes

Install Memcached (for PHP7-FPM)

  1. Install the Memcached packages
apt-get install php7.0-memcached memcached
  1. Test Memcached:
php -a

Paste the following:

$m = new Memcached();  
$m->addServer('127.0.0.1', 11211);  
$m->set('foo', 100);  
echo $m->get('foo') . "\n";  

If 100 returned, all is good.

You can also paste the above in to a .php on the server to test it via web browser.

WordPress with Memcached

Download the Memcached plugin. Extract the object-cache.php file. Upload it to wp-content of your WP Install.