Mercurial > kallithea
changeset 7960:fb0417c65c64
docs: document official method for beaker cache cleanup
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 16 Nov 2019 20:23:31 +0100 |
parents | 552f6738ace2 |
children | 34c8cb3198d8 |
files | docs/usage/performance.rst |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/usage/performance.rst Wed Nov 20 12:55:14 2019 +0100 +++ b/docs/usage/performance.rst Sat Nov 16 20:23:31 2019 +0100 @@ -23,6 +23,15 @@ Tweak beaker cache settings in the ini file. The actual effect of that is questionable. +.. note:: + + Beaker has no upper bound on cache size and will never drop any caches. For + memory cache, the only option is to regularly restart the worker process. + For file cache, it must be cleaned manually, as described in the `Beaker + documentation <https://beaker.readthedocs.io/en/latest/sessions.html#removing-expired-old-sessions>`_:: + + find data/cache -type f -mtime +30 -print -exec rm {} \; + Database --------