Improved sessions notes in deployment checklist.
- Added note to clear old sessions when using database-backend. - Made note to consider the cache backend more generic.
This commit is contained in:
parent
9e1b6b8a66
commit
66b06822d0
|
@ -109,9 +109,6 @@ and in production. Django defaults to per-process :ref:`local-memory caching
|
||||||
Cache servers often have weak authentication. Make sure they only accept
|
Cache servers often have weak authentication. Make sure they only accept
|
||||||
connections from your application servers.
|
connections from your application servers.
|
||||||
|
|
||||||
If you're using Memcached, consider using :ref:`cached sessions
|
|
||||||
<cached-sessions-backend>` to improve performance.
|
|
||||||
|
|
||||||
:setting:`DATABASES`
|
:setting:`DATABASES`
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -187,6 +184,15 @@ Performance optimizations
|
||||||
Setting :setting:`DEBUG = False <DEBUG>` disables several features that are
|
Setting :setting:`DEBUG = False <DEBUG>` disables several features that are
|
||||||
only useful in development. In addition, you can tune the following settings.
|
only useful in development. In addition, you can tune the following settings.
|
||||||
|
|
||||||
|
Sessions
|
||||||
|
--------
|
||||||
|
|
||||||
|
Consider using :ref:`cached sessions <cached-sessions-backend>` to improve
|
||||||
|
performance.
|
||||||
|
|
||||||
|
If using database-backed sessions, regularly :ref:`clear old sessions
|
||||||
|
<clearing-the-session-store>` to avoid storing unnecessary data.
|
||||||
|
|
||||||
:setting:`CONN_MAX_AGE`
|
:setting:`CONN_MAX_AGE`
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|
|
@ -599,6 +599,8 @@ of ``request.session`` as described above in `using sessions in views`_.
|
||||||
Django applications which have the
|
Django applications which have the
|
||||||
:setting:`SESSION_EXPIRE_AT_BROWSER_CLOSE` setting enabled.
|
:setting:`SESSION_EXPIRE_AT_BROWSER_CLOSE` setting enabled.
|
||||||
|
|
||||||
|
.. _clearing-the-session-store:
|
||||||
|
|
||||||
Clearing the session store
|
Clearing the session store
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue