class documentation

class UpdateCacheMiddleware(MiddlewareMixin):

Known subclasses: django.middleware.cache.CacheMiddleware

View In Hierarchy

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 ​_should​_update​_cache Undocumented
Method process​_response Set the cache, if needed.
Instance Variable cache Undocumented
Instance Variable cache​_alias Undocumented
Instance Variable cache​_timeout Undocumented
Instance Variable key​_prefix Undocumented
Instance Variable page​_timeout 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
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.
Class Variable async​_capable Undocumented
Class Variable sync​_capable Undocumented
Instance Variable ​_is​_coroutine Undocumented
Instance Variable get​_response Undocumented
def __init__(self, get_response):
def _should_update_cache(self, request, response):

Undocumented

def process_response(self, request, response):
Set the cache, if needed.
cache =

Undocumented

cache_alias =

Undocumented

cache_timeout =

Undocumented

key_prefix =

Undocumented

page_timeout =

Undocumented