Skip to content
Snippets Groups Projects
Commit 31091e16 authored by spokje's avatar spokje Committed by Jakob P
Browse files

Issue #3460944: Local without memcache breaks after update

parent ea851f1e
Branches
Tags
1 merge request!32Respect empty array servers && bins settings
Pipeline #235434 passed
......@@ -168,6 +168,13 @@ class MemcacheDriverFactory {
elseif (class_exists('Memcache')) {
$extension = \Memcache::class;
}
// If both the "servers" and "bins" settings for a specified extension are
// an empty array, make it possible to have this module enabled and have
// neither Memcache nor Memcached installed on this environment.
elseif ($this->settings->get('servers', NULL) === []
&& $this->settings->get('bins', NULL) === []) {
$extension = 'disabled';
}
else {
throw new MemcacheException('No Memcache extension found');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment