1,011 B
1,011 B
Memcached is an in-memory caching system, much like Redis. While Varnish is generally used to improve performance for anonymous users, memcached
is used to improve the performance for logged in users.
To enable Memcached in Drupal VM:
- Make sure
memcached
is in the list ofinstalled_extras
in yourconfig.yml
. - Install the Memcache API module.
- Enable the module before you configure it in the next step.
- Add the following to your
settings.php
// Make memcache the default cache class.
$settings['cache']['default'] = 'cache.backend.memcache';
There's a lot more configuration available and the best resource is generally the Memcache API module's README.
For a list of available role variables, see the geerlingguy.memcached
Ansible role's README.