Skip to content

Commit

Permalink
[3.0.x] Corrected learn_cache_key() signature in docs.
Browse files Browse the repository at this point in the history
Follow up to b224152.
Backport of 5e17301 from master
  • Loading branch information
felixxm committed Mar 10, 2020
1 parent d6e67df commit 0fde266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ref/utils.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fde266

Please sign in to comment.