Comment #1 on issue 2538 by e...@tibco.com: Djblets: memcached leakage
across instances - when instances run same server domain but different site
I believe the following patch does the job of fixing this issue against the
diff --git a/djblets/util/misc.py b/djblets/util/misc.py
index 5fb8da8..521bfab 100644
@@ -193,7 +193,12 @@ def make_cache_key(key):
site = Site.objects.get_current()
# The install has a Site app, so prefix the domain to the key.
- key = "%s:%s" % (site.domain, key)
+ # Also prefix the site root, if there is one, to allow for
+ # multiple instances on the same host.
+ if settings.SITE_ROOT:
+ key = "%s:%s:%s" % (site.domain, settings.SITE_ROOT, key)
+ key = "%s:%s" % (site.domain, key)
# The install doesn't have a Site app, so use the key as-is.
You received this message because you are subscribed to the Google Groups
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at