Class: Radiant::Cache::MetaStore

Inherits:
Rack::Cache::MetaStore::Disk
  • Object
show all
Defined in:
lib/radiant/cache.rb

Instance Method Summary collapse

Constructor Details

#initialize(root = "#{Rails.root}/tmp/cache/meta") ⇒ MetaStore

Returns a new instance of MetaStore.



43
44
45
46
# File 'lib/radiant/cache.rb', line 43

def initialize(root="#{Rails.root}/tmp/cache/meta")
  super
  Radiant::Cache.meta_stores << self
end

Instance Method Details

#clearObject



48
49
50
# File 'lib/radiant/cache.rb', line 48

def clear
  Dir[File.join(self.root, "*")].each {|file| FileUtils.rm_rf(file) }
end