GoDaddy Help

Configure your website to use Memcached

After you've installed the daemon and installed the PHP libraries, you'll need to tell your PHP application to use Memcached. If you don't, Memcached will simply use server resources without providing any benefit.

Note: We strongly recommend that you create a backup of your site before making any of the changes outlined below.

WordPress

You can use Memcached by utilizing any number of WordPress caching plugins (this list is not all-inclusive).

Joomla

Joomla supports Memcached without any additional extensions.

  1. To activate it, open the site's configuration.php file, and look for these lines:

    public $caching = '0';
    public $cache_handler = 'file';
    
  2. Change them to activate Memcached:

    public $caching = '2';
    public $cache_handler = 'memcached';
    public $memcached_server_host = '127.0.0.1';
    public $memcached_server_port = '11211';
  3. Save your changes.

Drupal

Memcached support can be added to Drupal by installing a Drupal Module.

Memcache API and Integration Module

Magento

Memcached support is added to Magento by making changes to website configuration files.

  1. To activate it, open the site's /app/etc/env.php file and look for these lines:

    'session' =>
        array (
        'save' => 'files',
    ),
    
  2. Change them to activate Memcached:

    'session' =>
        array (
          'save' => 'memcached',
          'save_path' => '127.0.0.1:11211'
    ),
    
  3. Save your changes.

Related Steps

More info

  • Our server experts can perform these steps for a fee. For more information about our Expert Services, please visit our Expert Service menu.

Share this article