lib/nitro/caching.rb in nitro-0.17.0 vs lib/nitro/caching.rb in nitro-0.18.0
- old
+ new
@@ -1,9 +1,5 @@
-# * George Moschovitis <gm@navel.gr>
-# (c) 2004-2005 Navel, all rights reserved.
-# $Id: caching.rb 1 2005-04-11 11:04:30Z gmosx $
-
require 'fileutils'
require 'glue/attribute'
require 'nitro/caching/output'
@@ -13,11 +9,15 @@
module Nitro
# Adds support for caching.
module Caching
+
+ # Globaly enable/disable caching.
+ mattr_accessor :caching_enabled, true
+
def self.append_features(base) #:nodoc:
super
base.send :include, Output, Actions, Fragments
base.class_eval do
cattr_accessor :caching_enabled, true
@@ -25,5 +25,7 @@
end
end
end
+
+# * George Moschovitis <gm@navel.gr>