Ticket #5176: 0001_generate_cache_key.diff
File 0001_generate_cache_key.diff, 1.2 KB (added by , 16 years ago) |
---|
-
django/utils/cache.py
23 23 set 24 24 except NameError: 25 25 from sets import Set as set # Python 2.3 fallback 26 from Cookie import SimpleCookie 26 27 27 28 from django.conf import settings 28 29 from django.core.cache import cache … … 141 142 ctx = md5_constructor() 142 143 for header in headerlist: 143 144 value = request.META.get(header, None) 145 if isinstance(value, SimpleCookie): 146 value = value.output() 147 144 148 if value is not None: 145 149 ctx.update(value) 146 150 return 'views.decorators.cache.cache_page.%s.%s.%s' % ( -
AUTHORS
239 239 Lau Bech Lauritzen 240 240 Rune Rønde Laursen <runerl@skjoldhoej.dk> 241 241 Eugene Lazutkin <http://lazutkin.com/blog/> 242 lcordier@point45.com242 Louis Cordier <lcordier@gmail.com> 243 243 Jeong-Min Lee <falsetru@gmail.com> 244 244 Jannis Leidel <jl@websushi.org> 245 245 Christopher Lenz <http://www.cmlenz.net/>