Sha256: 4b0d58e8c2692fb8c86f5d7786c0da0085efb15fa636679c9489218276002b4f

Contents?: true

Size: 274 Bytes

Versions: 2

Compression:

Stored size: 274 Bytes

Contents

#:enddoc:
module RailsConnector

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

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

end # module RailsConnector

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.0.beta.200.891.647580e lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.889.d503e42 lib/rails_connector/cache_middleware.rb