So you want to cache your satchmo store but it doesn't seem to work
with django caching. This may be a bug or it may be a overlooked
scenario.
I have a satchmo store with Google Analytics enabled and the django
middleware caching mechanism set up. As it turns out django caches
pages not just based on url but also on some of the cookies (vary
headers). For example you may have a site in English, Spanish, French.
Well the url won't indicate teh language used however the language
cookie will. Django assembles the cache key based on request.path,
site_prefix and the cookies.
If you have google analytics the google javascript code updates some
cookies which are also part of the cache key. Unfortunately google
updates these cookies everytime the page is refreshed so a different
cache key will be generated each and everytime, effectively not
caching anything!!!
This code here (django/utils/cachey.py) grabs the headerlist. Possible
that this is where we want to exclude what it is caching on.
if response.has_header('Vary'):
headerlist = ['HTTP_'+header.upper().replace('-', '_')
for header in
cc_delim_re.split(response['Vary'])]
For the non-programmers the solution right now would be to disable
google analytics in the satchmo settings and your cache will be
working perfectly!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo users" 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---