Ticket #5176: patch.diff

File patch.diff, 769 bytes (added by Eratothene, 17 years ago)

patch to django.utils.cache

Line 
1*** /home/and/django_src/django/utils/cache.py Wed Aug 1 11:29:02 2007
2--- utils/cache.py Thu Aug 16 10:05:19 2007
3***************
4*** 117,123 ****
5 for header in headerlist:
6 value = request.META.get(header, None)
7 if value is not None:
8! ctx.update(value)
9 return 'views.decorators.cache.cache_page.%s.%s.%s' % (key_prefix, request.path, ctx.hexdigest())
10
11 def get_cache_key(request, key_prefix=None):
12--- 117,123 ----
13 for header in headerlist:
14 value = request.META.get(header, None)
15 if value is not None:
16! ctx.update(str(value))
17 return 'views.decorators.cache.cache_page.%s.%s.%s' % (key_prefix, request.path, ctx.hexdigest())
18
19 def get_cache_key(request, key_prefix=None):
Back to Top