Skip to content

Commit

Permalink
Add docs for SESSION_CLEANUP_N_REQUESTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Lxstr committed Feb 15, 2024
1 parent 309bda3 commit dbf5387
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/config_backend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,16 @@ SqlAlchemy

Default: ``None``

.. py:data:: SESSION_CLEANUP_N_REQUESTS
Only applicable to non-TTL backends.

The average number of requests after which Flask-Session will perform a session cleanup. This involves removing all session data that is older than ``PERMANENT_SESSION_LIFETIME``. Using the app command ``flask session_cleanup`` instead is preferable.

Default: ``None``

.. versionadded:: 0.7.0
``SESSION_CLEANUP_N_REQUESTS``

.. versionadded:: 0.6
``SESSION_SQLALCHEMY_BIND_KEY``, ``SESSION_SQLALCHEMY_SCHEMA``, ``SESSION_SQLALCHEMY_SEQUENCE``

0 comments on commit dbf5387

Please sign in to comment.