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>
This commit is contained in:
Sarah Boyce 2023-02-13 21:09:19 +01:00 committed by GitHub
parent 7e297e52c2
commit 1eb94bc8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -375,6 +375,14 @@ the user ``apache``.
content, which your site will trust, but also remotely execute arbitrary content, which your site will trust, but also remotely execute arbitrary
code, as the data is serialized using :mod:`pickle`. 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:
Local-memory caching Local-memory caching