Permalink
Browse files

Insert rack/cache middleware

  • Loading branch information...
1 parent e9be137 commit d52febedb3bd419b16beccbb1780d0afac876d8c @lmarburger lmarburger committed Feb 27, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 config.ru
View
@@ -1,9 +1,15 @@
$stdout.sync = true
+require 'dalli'
+require 'rack/cache'
require 'rack/timeout'
require './lib/bundler_api/web'
use Rack::Timeout
Rack::Timeout.timeout = 13 # seconds
+use Rack::Cache, :metastore => Dalli::Client.new,
+ :entitystore => 'file:tmp/cache/rack/body',
+ :allow_reload => false
+
run BundlerApi::Web.new

0 comments on commit d52febe

Please sign in to comment.