diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2023-02-13 21:09:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-13 21:09:19 +0100 |
| commit | 1eb94bc8dab46dfa117d21ef4f3b52aebb593615 (patch) | |
| tree | 229a8853b919287169095a5f1c78fd65b5438763 /docs/topics/cache.txt | |
| parent | 7e297e52c21e9203d2b963dd34b9098af9382994 (diff) | |
Fixed #29994 -- Added warning about performance of FileBasedCache with a large number of files.
Co-authored-by: sheenarbw <699166+sheenarbw@users.noreply.github.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'docs/topics/cache.txt')
| -rw-r--r-- | docs/topics/cache.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index 4cf644307c..a94f59bbe8 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -375,6 +375,14 @@ the user ``apache``. content, which your site will trust, but also remotely execute arbitrary code, as the data is serialized using :mod:`pickle`. +.. warning:: + + Filesystem caching may become slow when storing a large number of files. If + you run into this problem, consider using a different caching mechanism. + You can also subclass + :source:`FileBasedCache <django/core/cache/backends/filebased.py>` and + improve the culling strategy. + .. _local-memory-caching: Local-memory caching |
