[Plugin: Memcached Object Cache] Shared Memcached Servers – wrong content retuned?
-
Hello,
I have the following senario, two separate/different WordPress installs on dedicated servers; both have hyperdb (and wp-supercache) installed. The database for both WP sites is on the same master/slave deployment of mySQL (different DBs obviously).
One WP install hammers the mysql cluster causing performance issues for both sites.
It has been suggested to install memcached, which we have done in a similar fashion to mySQL, both website share the memcached cluster… IE in the wp-config.php of both sites we have set the following:
$memcached_servers = array('default' => array('mem1:11211', 'mem2:11211'));
However I think I’ve seen instances where by WP Site1 is showing content of WP Site2 … probably due to WP Site2 storing the data on the memecached cluster with a given key and WP site1 looking for the same key…. since the WP installs are separate the content is completely different thus causing a problem.
Looking at the plugin code I believe this is resolved by using the blog_id global variable, but I cannot work out if this is set by default – and I need to change it on one WP install or if I need to set it… i.e. is it a numberic value?
I’ve attempted an ascii drawing of what we have, any advise would be appreciated.
Cheers,
Nick+------+ +------+ | mySQL| | mySQL| +------+ +------+ | | --------------------------------------- | | | | +------+ +------+ +------+ +------+ | WP1 | | WP2 | | Mem1 | | Mem2 | +------+ +------+ +------+ +------+ | | --------------------- | WWW
- The topic ‘[Plugin: Memcached Object Cache] Shared Memcached Servers – wrong content retuned?’ is closed to new replies.