Ticket #2393: cache.diff
File cache.diff, 788 bytes (added by , 18 years ago) |
---|
-
usr/lib/python2.4/site-packages/django/middleware/cache.py
36 36 if key_prefix is None: 37 37 self.key_prefix = settings.CACHE_MIDDLEWARE_KEY_PREFIX 38 38 if cache_anonymous_only is None: 39 self.cache_anonymous_only = settings.get('CACHE_MIDDLEWARE_ANONYMOUS_ONLY', False) 39 try: 40 self.cache_anonymous_only = settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY 41 except AttributeError: 42 self.cache_anonymous_only = False 40 43 else: 41 44 self.cache_anonymous_only = cache_anonymous_only 42 45