class documentation
class UpdateCacheMiddleware(MiddlewareMixin): (source)
Known subclasses: django.middleware.cache.CacheMiddleware
Response-phase cache middleware that updates the cache if the response is cacheable. Must be used as part of the two-part update/fetch cache middleware. UpdateCacheMiddleware must be the first piece of middleware in MIDDLEWARE so that it'll get called last during the response phase.
Method | __init__ |
Undocumented |
Method | process |
Set the cache, if needed. |
Instance Variable | cache |
Undocumented |
Instance Variable | cache |
Undocumented |
Instance Variable | key |
Undocumented |
Instance Variable | page |
Undocumented |
Property | cache |
Undocumented |
Method | _should |
Undocumented |
Inherited from MiddlewareMixin
:
Async Method | __acall__ |
Async version of __call__ that is swapped in when an async request is running. |
Method | __call__ |
Undocumented |
Method | __repr__ |
Undocumented |
Class Variable | async |
Undocumented |
Class Variable | sync |
Undocumented |
Instance Variable | get |
Undocumented |
Method | _async |
If get_response is a coroutine function, turns us into async mode so a thread is not consumed during a whole request. |
Instance Variable | _is |
Undocumented |