浏览代码

Corrected learn_cache_key() signature in docs.

Follow up to b22415214a7bdeaf8ccd7b8b21872038ab865991.
Mariusz Felisiak 5 年之前
父节点
当前提交
5e17301f38
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/ref/utils.txt

+ 1 - 1
docs/ref/utils.txt

@@ -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
     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