From 4e1999d465ff73286dca9cc1b427c8bb401f0fb0 Mon Sep 17 00:00:00 2001 From: Shay Palachy Date: Tue, 20 Oct 2020 16:41:42 +0300 Subject: [PATCH] Update README.rst --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rst b/README.rst index e90dcb8..b8a5a63 100644 --- a/README.rst +++ b/README.rst @@ -207,6 +207,12 @@ You can set a MongoDB-based cache by assigning ``mongetter`` with a callable tha This allows you to have a cross-machine, albeit slower, cache. This functionality requires that the installation of the ``pymongo`` python package. +In certain cases the MongoDB backend might leave a deadlock behind, blocking all subsequent requests from being processed. If you encounter this issue, supply the ``wait_for_calc_timeout`` with a reasonable number of seconds; calls will then wait at most this number of seconds before triggering a recalculation. + +.. code-block:: python + + @cachier(mongetter=False, wait_for_calc_timeout=2) + Contributing ============