Mercurial > hg > soundsoftware-site
changeset 1076:b665182d9dd9 cannam
Enable file store cache for everything
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 21 Nov 2012 17:38:01 +0000 |
parents | 2cc9845228b3 |
children | 9b5b4e7970cd 413d1d9c3efa b56a4c5afa35 3b7e11eaf1ca |
files | config/environment.rb |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/config/environment.rb Wed Nov 21 17:35:50 2012 +0000 +++ b/config/environment.rb Wed Nov 21 17:38:01 2012 +0000 @@ -36,7 +36,10 @@ # Enable page/fragment caching by setting a file-based store # (remember to create the caching directory and make it readable to the application) - # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" + config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" + + # And for direct uses of the cache + config.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" # Activate observers that should always be running # config.active_record.observers = :cacher, :garbage_collector