diff options
| author | Adam Johnson <me@adamj.eu> | 2020-03-25 11:04:52 +0000 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2020-03-25 12:05:36 +0100 |
| commit | 76db34e52a7852dc292a1792c8a0499ac65faced (patch) | |
| tree | 2884536cf7d873b133eebe77ed05413966f0b5a5 | |
| parent | 72652bcb1b29710d23c3e6f872046d4aedc58665 (diff) | |
[3.0.x] 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.
Backport of 66b06822d05ca1cf897745e7cb3c89adc53363ba from master
| -rw-r--r-- | docs/howto/deployment/checklist.txt | 12 | ||||
| -rw-r--r-- | docs/topics/http/sessions.txt | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/docs/howto/deployment/checklist.txt b/docs/howto/deployment/checklist.txt index b307076b62..06bf08473a 100644 --- a/docs/howto/deployment/checklist.txt +++ b/docs/howto/deployment/checklist.txt @@ -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 connections from your application servers. -If you're using Memcached, consider using :ref:`cached sessions -<cached-sessions-backend>` to improve performance. - :setting:`DATABASES` -------------------- @@ -187,6 +184,15 @@ Performance optimizations Setting :setting:`DEBUG = False <DEBUG>` disables several features that are 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` ----------------------- diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt index 5921ba6625..71abe7603e 100644 --- a/docs/topics/http/sessions.txt +++ b/docs/topics/http/sessions.txt @@ -599,6 +599,8 @@ of ``request.session`` as described above in `using sessions in views`_. Django applications which have the :setting:`SESSION_EXPIRE_AT_BROWSER_CLOSE` setting enabled. +.. _clearing-the-session-store: + Clearing the session store ========================== |
