class documentation

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_response Set the cache, if needed.
Instance Variable cache_alias Undocumented
Instance Variable cache_timeout Undocumented
Instance Variable key_prefix Undocumented
Instance Variable page_timeout Undocumented
Property cache Undocumented
Method _should_update_cache 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_capable Undocumented
Class Variable sync_capable Undocumented
Instance Variable get_response Undocumented
Method _async_check 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_coroutine Undocumented
def process_response(self, request, response): (source)

Set the cache, if needed.

cache_alias = (source)

Undocumented

cache_timeout = (source)

Undocumented

key_prefix = (source)

Undocumented

page_timeout = (source)

Undocumented

Undocumented

def _should_update_cache(self, request, response): (source)

Undocumented