WordPress Memcached

Make WordPress Memcached super easy with Redis Enterprise

Using Memcached with WordPress

To use Memcached as a cache for your WordPress installation, follow these steps as described in the documentation of the Memcached Cloud plugin for WordPress:

  1. Make sure that your WordPress server is installed with the libmemcached and the PECL memcached extension.
  2. Copy the file object-cache.php from the Memcached Cloud plugin for WordPress .ZIP file to wp-content/object-cache.php of your WordPress installation.
  3. Add the following definitions to your WordPress’ installation wp-config.php file:
     global $memcached_servers;
    $memcached_servers = array( array( 'hostname', port ) );
    global $memcached_username;
    $memcached_username = 'username';
    global $memcached_password;
    $memcached_password = 'password';
    • In line 3, the first argument should be your bucket’s hostname or IP address
    • In line 3, the second argument should be your bucket’s port
    • In line 5, the value should be your bucket’s username
    • In line 7, the value should be your bucket’s password

    Redis Enterprise enables running Memcached buckets in a highly available and auto-scalable manner, with predictable top performance.

    Redis Enterprise Software lets you install an enterprise grade Memcached cluster in your environment of choice, whether an on-premises data-center or your preferred cloud platform. It gives you full control of your data and configuration – no clustering or sharding knowledge required!

    Memcached Cloud is a fully managed cloud service for hosting and running Memcached datasets in a highly available and scalable manner, with predictable and stable top performance. It provides a storage engine for standard Memcached, as well as in-memory replication and instant auto-failover within the same data center or across data centers. The service completely frees developers from dealing with nodes, clusters, scaling, data persistence issues or failure recovery.

    For more information on using Redis’ products and services with WordPress please see the Howto page.