Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 6 by n.leush: Cache backend doesn't save SITE_ID
http://code.google.com/p/django-dbtemplates/issues/detail?id=6
What steps will reproduce the problem?
1. Create templates for different Sites.
2. Write middleware wich dynamically swithces SITE_ID.
3. Wrong templates loading for current Site from cache.
Example working solution:
class DjangoCacheBackend(BaseCacheBackend):
"""
A cache backend that uses Django's cache mechanism.
"""
def _cache_key(self, name):
return 'dbtemplates::%s::%s' % (name, settings.SITE_ID)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---