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
Comment #1
tjwallace commentedActually 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.
Comment #2
slantview commentedCan you show us your config please?