Going over the documentation for multitenancy + memcache it seems that memcache entries are separated for each namespace. See documentation here.
The problem is that when we call:
memcache.flush_all()
Everything is flushed in the memcache, not just the entries for the current namespace.
Before calling flush_all() we are explicitly setting the namespace using the following code:
namespace_manager.set_namespace(foo)
How can I flush entries in memcache only for the current namespace?