1. cache_clear_all deletes from memory.
  2. cache_get, not finding the object in the memcached, grabs object from database and copies it to memcached.
  3. cache_clear_all deletes from database.

Nice job, you just managed to negate the effect of cache_clear_all . This can be nasty. Fix is easy.

CommentFileSizeAuthor
m.patch1.4 KBchx

Comments

chx’s picture

Note that while this is a real concern, our not-deleting problem only went away when we upped to latest memcache PECL extension.

robertdouglass’s picture

@chx: please advise on the status of this issue.

robertdouglass’s picture

Status: Reviewed & tested by the community » Needs work

Doesn't apply. Logic in memcache.db.inc has changed.

jeremy’s picture

Status: Needs work » Closed (duplicate)

I believe this is now a duplicate which has been fixed. (Please re-open if the problem is actually still there.)