1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #21000 -- Made cached_db session backend respect SESSION_CACHE_ALIAS

This commit is contained in:
CHI Cheng
2013-08-30 14:03:23 +10:00
committed by Tim Graham
parent a2374bcf47
commit ed9cd4fd8b
4 changed files with 26 additions and 6 deletions

View File

@@ -154,6 +154,13 @@ Minor features
follow the :setting:`SESSION_COOKIE_SECURE` and
:setting:`SESSION_COOKIE_HTTPONLY` settings.
:mod:`django.contrib.sessions`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* The ``"django.contrib.sessions.backends.cached_db"`` session backend now
respects :setting:`SESSION_CACHE_ALIAS`. In previous versions, it always used
the `default` cache.
:mod:`django.contrib.sitemaps`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@@ -93,6 +93,11 @@ session data be expunged from time to time, the ``cache`` backend is for you.
If you use the ``cached_db`` session backend, you also need to follow the
configuration instructions for the `using database-backed sessions`_.
.. versionchanged:: 1.7
Before version 1.7, the ``cached_db`` backend always used the ``default`` cache
rather than the :setting:`SESSION_CACHE_ALIAS`.
Using file-based sessions
-------------------------