Transparent image file caching middleware, designed to live on Glance API nodes. When images are requested from the API node, this middleware caches the returned image file to local filesystem.
When subsequent requests for the same image file are received, the local cached copy of the image file is returned.
glance.api.middleware.cache.
CacheFilter
(app)[source]¶Bases: glance.common.wsgi.Middleware
get_status_code
(response)[source]¶Returns the integer status code from the response, which can be either a Webob.Response (used in testing) or httplib.Response
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.