lib/nitro/caching/output.rb in nitro-0.27.0 vs lib/nitro/caching/output.rb in nitro-0.28.0
- old
+ new
@@ -4,15 +4,23 @@
# Adds support for caching.
module Caching
- # Output caching.
+ # The Output caching subsystem stores whole pages in the
+ # filesystem to be served directly be the front web server
+ # (Lighttpd, Apache, etc) for optimal performance.
+ #
+ # Nitro promotes coding your application in such a way as to
+ # allow for output caching to the greatest extend.
+ #--
+ # gmosx, FIXME: Don't create excessive directories, use better
+ # rewrite rules to handle xxx.html files.
+ #++
module Output
def self.included(base) # :nodoc:
- super
base.extend(ClassMethods)
base.module_eval do
cattr_accessor :output_cache_root, 'public'
end
end