Lock inc drupal hosting

This article describes how to configure Drupal to use memcached.

Memcached is an open-source memory object caching system that web sites can use to help accelerate page load times. Memcached works by caching in RAM frequently accessed data, such as the results of API calls, database calls, and more.

  • If you have a managed VPS or managed Flex Dedicated Server, please open a support ticket on the Customer Portal at https://my.a2hosting.com and request memcached for your system. We will install it for you.
  • If you have a semi-managed VPS, Cloud VPS, or semi-managed Flex Dedicated Server, you can install memcached yourself.
  • If you have a Turbo Web Hosting account, you should not follow the procedures in this article. Instead, use the A2 Optimized plugin to configure and manage memcached for your application.
  • Memcached is not supported on non-Turbo shared hosting accounts at this time.
hosting

Table of Contents

After memcached is installed on your system, you need to install a module so Drupal can access and use it. To do this, follow these steps:

  1. Use your web browser to visit https://www.drupal.org/project/memcache .
  2. Under Downloads. download the .gz file to your computer.
  3. Log in to your Drupal site as the administrator.
  4. On the top menu bar, click Modules. and then click Install new module .
  5. Click Browse. select the .gz file on your local computer, and then click Install. Drupal installs the memcached module.
  6. Under Next steps. click Enable newly added modules. The Modules page appears.
  7. Scroll down to PERFORMANCE AND SCALABILITY. and then select the ENABLED check box next to the Memcache and Memcache Admin modules.
  8. Click Save configuration .
  9. On the top menu bar, click Configuration .
  10. Under SYSTEM. click Memcache .
  11. If you want to display memcached-related statistics at the bottom of each page, select the Show memcache statistics at the bottom of each page check box, and then click Save configuration.

By default, only the administrator can view these statistics, which include fetch times (in milliseconds), total number of cache hits and misses, and more.

After you install and enable the memcached module, you are ready to configure Drupal to actually use memcached. To do this, follow these steps:

  1. Use your preferred text editor to open the sites/default/settings.php file.
  2. Copy the following text and paste it into the settings.php file:

This configuration sets up one memcached instance that stores all Drupal caches in memcache except for cache_form. For additional memcached configuration examples, see the sites/all/modules/memcache/README.txt file.

Lock inc drupal hosting to the Memcache and

  • Save your changes to the settings.php file. Memcached is now configured for Drupal.
    • For more information about memcached, please visit www.memcached.org .
    • For more information about Drupal's memcached implementation, please visit https://www.drupal.org/project/memcache .

    Related articles

    Faceted search apache solr drupal hostingNote: Extra special thanks to Doug Vann for providing motivation to finally post this blog post! Early in 2016, when the Search API and Solr-related modules for Drupal 8 were in early alpha...
    Multi sites drupal hostingIf you are running more than one Drupal site, you can simplify the management and can upgrade your sites by using the multi-site feature. Multi-site allows you to share a single Drupal...
    Ad module drupal hostingHow to install/enable Drupal modules You can enable/disable Drupal Modules from the Drupal Administration area -> Modules section. The default installation of Drupal has many useful modules,...
    Creating modules in drupal hostingHow to install/enable Drupal modules You can enable/disable Drupal Modules from the Drupal Administration area -> Modules section. The default installation of Drupal has many useful modules,...
    Throbber gif drupal hostingSubmitted by Drupion Support on 25 September 2012 12:44 Modal windows are excellent design features because it allows you to easily display more information on a page without causing the...