Fix memcache cleanup