markbates / mack-more

All the extra stuff you could want for the Mack Framework.

This URL has Read+Write access

mack-more / mack-caching / lib / page_caching / controller_extensions.rb
e064f60d » markbates 2008-07-21 Finished page caching. [#18... 1 module Mack
2
3 module Controller
4
5 module ClassMethods
6 def cache_pages(options = {})
7 before_filter :set_page_cache_header, options
8 end
9 end
10
11 private
12 def set_page_cache_header
13 response["cache_this_page"] = "true"
14 end
15
16 end # Controller
17
18 end # Mack