Enabling Memcached on Acquia Cloud work with BLT

August 31, 2017

Enabling Memcache on Acquia Cloud work with BLT In /docroot/sites/default/settings.php add the following configuration code after requiring blt.settings.php.

    require DRUPAL_ROOT . "/../vendor/acquia/blt/settings/blt.settings.php";
    $settings['install_profile'] = 'lightning';

    /**
     * Memcache setting.
     *
     * Enable setting if memcache service exists.
     */
    if (\Drupal::hasService('cache.backend.memcache')) {
      $settings['cache']['default'] = 'cache.backend.memcache';
    }

Profile picture

Webのフロントエンドからバックエンド、プロトタイピングからプロダクションまで。定額の開発サービスも。詳しくはAboutページで。