Sha256: f2cfb966a87c6fdc85376b77b7e1af410ed32b77b35687539268e50212c4d212
Contents?: true
Size: 274 Bytes
Versions: 82
Compression:
Stored size: 274 Bytes
Contents
module Scrivito class CacheMiddleware def initialize(app) @app = app end def call(env) clear_cache @app.call(env) end private def clear_cache Workspace.cache.clear CmsDataCache.clear_request_cache end end end
Version data entries
82 entries across 82 versions & 1 rubygems
Version | Path |
---|---|
scrivito_sdk-1.2.0.rc2 | lib/scrivito/cache_middleware.rb |
scrivito_sdk-1.2.0.rc1 | lib/scrivito/cache_middleware.rb |