class documentation

class FetchFromCacheMiddleware(MiddlewareMixin): (source)

Known subclasses: django.middleware.cache.CacheMiddleware

View In Hierarchy

Request-phase cache middleware that fetches a page from the cache. Must be used as part of the two-part update/fetch cache middleware. FetchFromCacheMiddleware must be the last piece of middleware in MIDDLEWARE so that it'll get called last during the request phase.

Method __init__ Undocumented
Method process_request Check whether the page is already cached and return the cached version if available.
Instance Variable cache_alias Undocumented
Instance Variable key_prefix Undocumented
Property 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_request(self, request): (source)

Check whether the page is already cached and return the cached version if available.

cache_alias = (source)

Undocumented

key_prefix = (source)

Undocumented

Undocumented