Ticket #16708: cached_db_exists_check_cache.diff

File cached_db_exists_check_cache.diff, 517 bytes (added by jpvale@…, 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):  
    2222        return data
    2323
    2424    def exists(self, session_key):
     25        if cache.get(session_key) is not None:
     26            return True
    2527        return super(SessionStore, self).exists(session_key)
    2628
    2729    def save(self, must_create=False):
Back to Top