Using the memcache and php5-memcache versions provided by Karmic, the Memcache->delete command needs to have the timeout parameter passed as 0, otherwise it hangs while trying to lock.

Change:
function unlock() {
return $this->memcache->delete($this->lock, 0);
}

Comments

tjwallace’s picture

Priority: Normal » Critical

Actually I believe the issue is bigger than this... When accessing a page that has not been cached, memcached shows continuous:

<32 add /tmp/cache_lock 0 0 1
>32 NOT_STORED

Until it either succeeds or you get the following error:

Failed to write, and not due to blocking: Connection reset by peer
<33 connection closed.

slantview’s picture

Can you show us your config please?