---
title: "RA Environment and Memcache"
date: "2022-01-24T23:45:58+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/94536-ra-environment-and-memcache"
id: "133ffef5-805b-4289-b8e3-3d0ba7c775b6"
---

The RA environment ds 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 (iet($conf['memcache_servers'])) {
        $conf['memcache_extension'] = 'Memcached';
    }
    
    # Drupal 8
    if (iet($settings['memcache']['servers'])) {
        $settings['memcache']['extension'] = 'Memcached';
    }