aleph.views.cache

aleph.views.cache.cache_response(resp)

Post-request processing to set cache parameters.

aleph.views.cache.enable_cache()

Enable caching in the context of a view.

If desired, instructions on the cache parameters can be included, such as if the data is fit for public caches (default: no, vary_user) and what values to include in the generation of an etag.

aleph.views.cache.handle_not_modified(exc)
aleph.views.cache.setup_caching()

Set some request attributes at the beginning of the request.

By default, caching will be disabled.

NotModified

class aleph.views.cache.NotModified

Imports

  • exceptions.Exception