class documentation

class CacheMiddleware(UpdateCacheMiddleware, FetchFromCacheMiddleware):

View In Hierarchy

Cache middleware that provides basic behavior for many simple sites.

Also used as the hook point for the cache decorator, which is generated using the decorator-from-middleware utility.

Method __init__ Undocumented
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 UpdateCacheMiddleware:

Method ​_should​_update​_cache Undocumented
Method process​_response Set the cache, if needed.

Inherited from MiddlewareMixin (via UpdateCacheMiddleware):

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

Inherited from FetchFromCacheMiddleware:

Method process​_request Check whether the page is already cached and return the cached version if available.

Inherited from MiddlewareMixin (via FetchFromCacheMiddleware):

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, cache_timeout=None, page_timeout=None, **kwargs):