mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
[3.0.x] Corrected get_cache_key() signature in docs.
Follow up tob22415214a
andcb17f7ca22
Backport ofd82d2d49d6
from master
This commit is contained in:
parent
300bd064c1
commit
2928587694
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue