Skip to content

Commit

Permalink
[3.0.x] Corrected get_cache_key() signature in docs.
Browse files Browse the repository at this point in the history
Follow up to b224152 and
cb17f7c
Backport of d82d2d4 from master
  • Loading branch information
verhovsky authored and felixxm committed Mar 10, 2020
1 parent 300bd06 commit 2928587
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 @@ -82,7 +82,7 @@ need to distinguish caches by the ``Accept-language`` header.
Handling an asterisk ``'*'`` according to :rfc:`7231#section-7.1.4` was
added.

.. function:: get_cache_key(request, key_prefix=None)
.. function:: get_cache_key(request, key_prefix=None, method='GET', cache=None)

Returns a cache key based on the request path. It can be used in the
request phase because it pulls the list of headers to take into account
Expand Down

0 comments on commit 2928587

Please sign in to comment.