diff --git a/drupal/web/sites/default/settings.php b/drupal/web/sites/default/settings.php index 36c81bda..f3e80426 100755 --- a/drupal/web/sites/default/settings.php +++ b/drupal/web/sites/default/settings.php @@ -116,7 +116,7 @@ */ if (!drupal_installation_attempted() && extension_loaded('memcached') && class_exists('Memcached')) { // Define memcache settings only if memcache module enabled. - if (class_exists(MemcacheBackendFactory::class)) { + if (strpos(file_get_contents(getcwd().'/../sync/core.extension.yml'), 'memcache: 0') !== FALSE) { $settings['memcache']['extension'] = 'Memcached'; $settings['memcache']['bins'] = ['default' => 'default']; $settings['memcache']['key_prefix'] = '';