Module: Cms::DefaultCaches

Included in:
Caching, MobileAware
Defined in:
lib/cms/caching.rb

Instance Method Summary collapse

Instance Method Details

#cms_cache_directoryObject

Returns the directory where BrowserCMS should write out it's Page cache files for the full version of the site. This should be exactly the same as where a typical CMS project stores it's files. (Optionally) It can be configured in environment files via:

config.cms.page_cache_directory = File.join(Rails.root, 'some', 'dir')


14
15
16
# File 'lib/cms/caching.rb', line 14

def cms_cache_directory
  Rails.application.config.cms.page_cache_directory
end

#mobile_cache_directoryObject

Returns the directory where BrowserCMS should write out it's Page cache files for the mobile version of the site. (Optionally) It can be configured in environment files via:

config.cms.mobile_cache_directory = File.join(Rails.root, 'some', 'mobile_dir')


6
7
8
# File 'lib/cms/caching.rb', line 6

def mobile_cache_directory
  Rails.application.config.cms.mobile_cache_directory
end