Permalink
Browse files

Move caching setting into config

  • Loading branch information...
1 parent 07e3f46 commit 7cbd0813fd3576cae5573cc6c3bad7c2e84301a9 Loren Segal committed Aug 22, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −2 app.rb
  2. +3 −0 config/config.yaml.sample
View
3 app.rb
@@ -38,6 +38,7 @@ def self.load_configuration
set :disallowed_gems, []
set :whitelisted_projects, []
set :whitelisted_gems, []
+ set :caching, false
return unless File.file?(CONFIG_FILE)
@@ -162,7 +163,6 @@ class << self; attr_accessor :the_options end
enable :static
enable :dump_errors
enable :lock
- disable :caching
disable :raise_errors
set :views, TEMPLATES_PATH
@@ -171,7 +171,6 @@ class << self; attr_accessor :the_options end
set :tmp, TMP_PATH
configure(:production) do
- enable :caching
enable :logging
# log to file
file = File.open("log/sinatra.log", "a")
@@ -6,6 +6,9 @@
# Base URL. Defaults to http://rubydoc.info
# url: http://rubydoc.info
+# Whether or not disk caching is enabled. Defaults to false
+# caching: false
+
# If you have Airbrake, uncomment the following line and add your API key:
# airbrake: YOUR_API_KEY

0 comments on commit 7cbd081

Please sign in to comment.