Sha256: cff30b8c28b566b4ac75bb532a4d535a16215fd35ed7b3d6fcfd66f4a10dac79

Contents?: true

Size: 228 Bytes

Versions: 10

Compression:

Stored size: 228 Bytes

Contents

module RailsConnector

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

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

end # module RailsConnector

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
infopark_cloud_connector-7.0.2 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-7.0.1 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-7.0.0 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.9.5 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.9.4 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.9.3.1.36404185 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.9.2.1.125136549 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.9.1.3.22208381 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.9.0.3.197272233 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.3.174.51542603 lib/rails_connector/cache_middleware.rb