Mercurial > kallithea
comparison docs/usage/performance.rst @ 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 | 19af3fef3b34 |
children | b688a2a1b189 |
comparison
equal
deleted
inserted
replaced
7959:552f6738ace2 | 7960:fb0417c65c64 |
---|---|
20 Caching | 20 Caching |
21 ------- | 21 ------- |
22 | 22 |
23 Tweak beaker cache settings in the ini file. The actual effect of that is | 23 Tweak beaker cache settings in the ini file. The actual effect of that is |
24 questionable. | 24 questionable. |
25 | |
26 .. note:: | |
27 | |
28 Beaker has no upper bound on cache size and will never drop any caches. For | |
29 memory cache, the only option is to regularly restart the worker process. | |
30 For file cache, it must be cleaned manually, as described in the `Beaker | |
31 documentation <https://beaker.readthedocs.io/en/latest/sessions.html#removing-expired-old-sessions>`_:: | |
32 | |
33 find data/cache -type f -mtime +30 -print -exec rm {} \; | |
25 | 34 |
26 | 35 |
27 Database | 36 Database |
28 -------- | 37 -------- |
29 | 38 |