Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Make memcache module check more explicit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tharna committed Oct 11, 2018
1 parent 93b8415 commit 56efa64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drupal/web/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
*/
if (!drupal_installation_attempted() && extension_loaded('memcached') && class_exists('Memcached')) {
// Define memcache settings only if memcache module enabled.
if (strpos(file_get_contents(getcwd().'/../sync/core.extension.yml'), 'memcache') !== false) {
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'] = '';
Expand Down

0 comments on commit 56efa64

Please sign in to comment.