Sha256: ab5cb71adfc3402eaffbec97f9863d594904f0f75692eb9a69e76396e59ebbba

Contents?: true

Size: 278 Bytes

Versions: 6

Compression:

Stored size: 278 Bytes

Contents

#:enddoc:
module RailsConnector

class CacheMiddleware
  def initialize(app)
    @app = app
  end

  def call(env)
    CmsBackend.begin_caching
    @app.call(env)
  ensure
    CmsBackend.end_caching
    DictStorage.clear_first_level_cache
  end
end

end # module RailsConnector

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.0.210.ed204b0 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.110.6570b45 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.72.d18d096 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.23.da7f96b lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.16.def5e85 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.15.a24f5ff lib/rails_connector/cache_middleware.rb