Sha256: d2edbdd2d29e05d737a428a67b5c90f7d2b0c41835c86f3e3bd85d80d1df88fb
Contents?: true
Size: 356 Bytes
Versions: 3
Compression:
Stored size: 356 Bytes
Contents
module Scrivito class CacheMiddleware def initialize(app) @app = app end def call(env) clear_caches clear_runtime @app.call(env) end private def clear_runtime Scrivito::LogSubscriber.reset_runtime end def clear_caches Workspace.cache.clear CmsBackend.instance.clear_cache end end end # module Scrivito
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scrivito_sdk-0.66.0 | lib/scrivito/cache_middleware.rb |
scrivito_sdk-0.66.0.rc2 | lib/scrivito/cache_middleware.rb |
scrivito_sdk-0.66.0.rc1 | lib/scrivito/cache_middleware.rb |