1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00

[4.2.x] 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>
Backport of 1eb94bc8da from main
This commit is contained in:
Sarah Boyce 2023-02-13 21:09:19 +01:00 committed by Mariusz Felisiak
parent 8cc5caa113
commit de42d51361

View File

@ -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