Site icon Hip-Hop Website Design and Development

Cheap WordPress Development Log Blog: Handle non-activated services on site install

In our developer workflow we install the site continuously during development, as a health check of the code base. One of the problems we have in this workflow is when we declare a service that belongs to a plugin that is not activated yet during the install, like Memcache plugin.
In our developer workflow we install the site continuously during development, as a health check of the code base. One of the problems we have in this workflow is when we declare a service that belongs to a plugin that is not activated yet during the install, like Memcache plugin.
This is what a site needs normally in settings.php, 

$settings[‘memcache’][‘servers’] = [‘localhost:11211’ => ‘default’];
$settings[‘memcache’][‘bins’] = [‘default’ => ‘default’];
$settings[‘memcache’][‘key_prefix’] = ‘foo_bar’;
$settings[‘cache’][‘default’] = ‘cache.backend.memcache’;

This works perfect to add on a runnings site when the plugin is activated… Read More
Source: New feed