summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-10 08:54:45 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-10 08:55:19 +0100
commit0fde2664f61052b281dfafdf87b484049fc938f9 (patch)
treeb53e8f3df79bedf221c93d06199a0876d98f315c
parentd6e67df4b9a7b16ce1f1f8b70f608efc3e20aabf (diff)
[3.0.x] Corrected learn_cache_key() signature in docs.
Follow up to b22415214a7bdeaf8ccd7b8b21872038ab865991. Backport of 5e17301f38d0a4f372d4d36762a464f5f4714ebd from master
-rw-r--r--docs/ref/utils.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index a79320fced..6fa91467fb 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -92,7 +92,7 @@ need to distinguish caches by the ``Accept-language`` header.
If there is no headerlist stored, the page needs to be rebuilt, so this
function returns ``None``.
-.. function:: learn_cache_key(request, response, cache_timeout=None, key_prefix=None)
+.. function:: learn_cache_key(request, response, cache_timeout=None, key_prefix=None, cache=None)
Learns what headers to take into account for some request path from the
response object. It stores those headers in a global path registry so that