lib/caboodle/kit.rb in caboodle-0.2.0 vs lib/caboodle/kit.rb in caboodle-0.2.1

- old
+ new

@@ -14,10 +14,11 @@ template :layout do @@template ||= File.open(File.join(File.dirname(__FILE__),"app","views","layout.haml")).read end before do - response.headers['Cache-Control'] = 'public, max-age=600' + Caboodle::Site.cache_for ||= 600 + response.headers['Cache-Control'] = "public, max-age=#{Caboodle::Site.cache_for}" end class << self def inherited subclass \ No newline at end of file