Logo Knowledge
  • Product Documentation
  • Insight
  • Developer Center
  • Training
  • Submit a Request
  • Product Documentation
  • Insight
  • Developer Center
  • Training
  • Submit a Request
  1. Acquia Support Knowledge Base
  2. Troubleshooting
  3. Common Problem

RA Environment and Memcache

    See more
    • Updated
    • February 08, 2019 17:12

    The RA environment does not include a memcache service. As a result, you may encounter unexpected site behaviors or drush may return errors similar to:

    WD memcache: Failed to connect to memcache server: 127.0.0.1:11211     [error]

    This is usually the result of a memcache statement in your settings.php that is not properly enclosed in the suggested if statement (see: Using Memcached). For example, if your memcached statement looks like:

    # Drupal 7
    $conf['memcache_extension'] = 'Memcached';
    
    # Drupal 8
    $settings['memcache']['extension'] = 'Memcached';

    It should be updated to look like the following instead:

    # Drupal 7
    if (isset($conf['memcache_servers'])) {
        $conf['memcache_extension'] = 'Memcached';
    }
    
    # Drupal 8
    if (isset($settings['memcache']['servers'])) {
        $settings['memcache']['extension'] = 'Memcached';
    }

     

    Acquia Products

    • Remote Administration

    Topics

    • memcache
    • drupal8
    • drupal7
    • ra
    Avatar
    Mohammad Zomorodian
    • February 08, 2019 17:12
    • Updated
    • Facebook
    • Twitter
    • LinkedIn

    Was this article helpful?
    2 out of 2 found this helpful

    Return to top

    Related articles

    • My site is slow with slow running queries
    • How to update to drupal/core-composer-scaffold in Drupal 8
    • Verifying the validity of an SSL certificate
    • How to check memcache memory allocated for your Acquia Cloud application
    • Upgrading from PHP 7.2 to 7.3

    Support

    Acquia Support Knowledge Base
    • Submit a Request
    • Contact Support
    • Acquia Support Guide
    • Product Documentation
    • System Status

    About Acquia

    • About Us
    • Leadership
    • Board of directors
    • Newsroom
    • Careers
    • Customers
    • Contact Us
    53 State Street, 10th Floor
    Boston, MA 02109
    United States
    Phone: 888-922-7842
    Map: Google Maps
    View other locations
    • Feeds
    • Legal
    • Security Issue?

    Copyright © 2018 Acquia Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.