Method: Scrivito::Configuration.cache_path=

Defined in:
app/cms/scrivito/configuration.rb

.cache_path=(path) ⇒ Object

Set the path for the filesystem cache.

Scrivito makes heavy use of filesystem caching. Use this method to configure the directory that should be used to store cached data. By default, RAILS_ROOT/tmp/scrivito_cache will be used.

Examples:

Configure Scrivito to store its cache under /tmp/my_cache.


Scrivito.configure do |config|
  config.cache_path = '/tmp/my_cache'
end

Parameters:

  • path (String)

    Path to directory that should be used to store cached data.



106
107
108
# File 'app/cms/scrivito/configuration.rb', line 106

def self.cache_path=(path)
  CmsDataCache.cache_path = path
end