django-cacheops icon indicating copy to clipboard operation
django-cacheops copied to clipboard

Add 'timeout' param to cached_view_as() examples and documentation.

Open xxxxxxbox opened this issue 7 months ago • 0 comments

It is not clear from the documentation whether the 'cached_view_as' decorator supports the 'timeout' parameter or not. All examples of using cached_view_as() are given without using 'timeout'.

The annotation of the function also does not provide an answer to this question. See the screenshot.

Experimentally, I found out that cached_view_as() actually supports timeout. Please add this to the documentation.

Image Image

xxxxxxbox avatar Jul 08 '25 16:07 xxxxxxbox