Module: Orthor::HttpCaching

Included in:
Object, Site, StaticPage
Defined in:
lib/orthor/http_caching.rb

Instance Method Summary collapse

Instance Method Details

#cache_for(time = nil) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/orthor/http_caching.rb', line 3

def cache_for(time=nil)
  if time
    @cache_for = time
  else
    if @cache_for.nil?
      Orthor::Site.cache_for
    else
      @cache_for
    end
  end
end