summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2023-02-13 21:09:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-13 21:09:55 +0100
commitde42d51361e316a4525440ad953e3a42ea6432b7 (patch)
tree005fc2d04b0bedfe51475908dec9ff31409fc12f /docs
parent8cc5caa113ed6de1d1ba803c4bd80f698ff930b2 (diff)
[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 1eb94bc8dab46dfa117d21ef4f3b52aebb593615 from main
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/cache.txt8
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