Memcached is breaking private messaging
-
I’ve got a large blog farm with multi-db’s using memcached & batcache to handle the load. The problem is that with BP, if I click to send a private message to a user, it shows the wrong recipient on the composition screen.
If I flush the cache and try again it works.Has anyone else been able to tweak the caching settings with object-cache.php or advanced-cache.php to get this to work?
Here’s what I have:
function batcache_cancel() {
global $batcache;if ( is_object($batcache) )
$batcache->cancel = true;
}class batcache {
// This is the base configuration. You can edit these variables or move them into your wp-config.php file.
var $max_age = 180; // Expire batcache items aged this many seconds (zero to disable batcache)var $remote = 0; // Zero disables sending buffers to remote datacenters (req/sec is never sent)
var $times = 2; // Only batcache a page after it is accessed this many times… (two or more)
var $seconds = 0; // …in this many seconds (zero to ignore this and use batcache immediately)var $group = ‘batcache44’; // Name of memcached group. You can simulate a cache flush by changing this.
var $unique = array(); // If you conditionally serve different content, put the variable values here.
Is there some way to exclude the message page?
Thanks!
- The topic ‘Memcached is breaking private messaging’ is closed to new replies.