Class: Mack::Distributed::ViewCache

Inherits:
Cachetastic::Caches::Base
  • Object
show all
Extended by:
ViewHelpers
Defined in:
lib/mack-distributed/views/view_cache.rb

Class Method Summary collapse

Class Method Details

.get(path) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/mack-distributed/views/view_cache.rb', line 8

def get(path)
  if configatron.mack.distributed.enable_view_cache
    raw = super(path) do
      get_raw_data(path, true)
    end 
  else
    raw = get_raw_data(path, false)
  end
  
  return raw
end