Class: Refinery::Pages::Caching

Inherits:
Object
  • Object
show all
Defined in:
lib/refinery/pages/caching.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cache_dir = nil) ⇒ Caching

Returns a new instance of Caching.



7
8
9
# File 'lib/refinery/pages/caching.rb', line 7

def initialize(cache_dir = nil)
  @cache_dir = cache_dir
end

Instance Attribute Details

#cache_dirObject (readonly)

Returns the value of attribute cache_dir.



5
6
7
# File 'lib/refinery/pages/caching.rb', line 5

def cache_dir
  @cache_dir
end

Instance Method Details

#expire!Object



11
12
13
14
# File 'lib/refinery/pages/caching.rb', line 11

def expire!
  clear_caching!
  delete_static_files!
end