Module: TemplateStreaming::Caching::Controller

Defined in:
lib/template_streaming/caching.rb

Instance Method Summary collapse

Instance Method Details

#cache_page(content = nil, options = nil) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/template_streaming/caching.rb', line 6

def cache_page(content = nil, options = nil)
  if content
    super
  else
    request.env[CACHER_KEY] = lambda { |c| super(c, options) }
  end
end