Ticket #16708: cached_db_exists_check_cache.diff
File cached_db_exists_check_cache.diff, 517 bytes (added by , 13 years ago) |
---|
-
django/contrib/sessions/backends/cached_db.py
diff --git a/django/contrib/sessions/backends/cached_db.py b/django/contrib/sessions/backends/cached_db.py index 9e22c69..5d88849 100644
a b class SessionStore(DBStore): 22 22 return data 23 23 24 24 def exists(self, session_key): 25 if cache.get(session_key) is not None: 26 return True 25 27 return super(SessionStore, self).exists(session_key) 26 28 27 29 def save(self, must_create=False):