Memcached Object Cache
many WP installations on the same server (3 posts)

  1. partyzant
    Posted 3 years ago #

    How to make this plugin works on many WP installations on the same server?


  2. Matt Martz
    Plugin Author

    Posted 3 years ago #

    By default it should. But that requires that you use unique table prefixes (They all cannot be wp_).

    To use it on many sites where the table prefixes are the same, you can add a constant to wp-config.php called WP_CACHE_KEY_SALT, such as:

    define('WP_CACHE_KEY_SALT', md5(DB_NAME . __FILE__));

    md5(DB_NAME . __FILE__) can be replaced by whatever you want, just as long as it is unique per site.

    See: http://plugins.trac.wordpress.org/browser/memcached/tags/2.0.2/object-cache.php#L13

  3. sggottlieb
    Posted 2 years ago #

    Does this pertain to a WordPress Multi-Site instance or is this about multiple different instances of WordPress? Right now, I have a multi-site instance with a hard coded WP_CACHE_KEY_SALT in the wp-config. It seems to work fine.

    One thing that I have noticed is that when I have different WP multi-site instances, I cannot point them to the same ElastiCache cluster even if the WP_CACHE_KEY_SALT is different in each of their wp-config.php files.

    The caches seem to get combined. What should I do?



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Memcached Object Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.