1
0
mirror of https://github.com/django/django.git synced 2025-08-14 22:09:12 +00:00

Corrected learn_cache_key() signature in docs.

Follow up to b22415214a7bdeaf8ccd7b8b21872038ab865991.
This commit is contained in:
Mariusz Felisiak 2020-03-10 08:54:45 +01:00 committed by GitHub
parent 5da627a58f
commit 5e17301f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ need to distinguish caches by the ``Accept-language`` header.
If there is no headerlist stored, the page needs to be rebuilt, so this If there is no headerlist stored, the page needs to be rebuilt, so this
function returns ``None``. 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 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 response object. It stores those headers in a global path registry so that