From 46f5ef207f213665730cdebb1eb48c1b76afb09e Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Tue, 8 Mar 2011 15:28:16 +1300 Subject: [PATCH] Switch to file_store as cache store for syncronisation purposes with passenger. Closes GH-462 --- core/lib/refinery/application.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/refinery/application.rb b/core/lib/refinery/application.rb index fe2d63618e..8a120aac4a 100644 --- a/core/lib/refinery/application.rb +++ b/core/lib/refinery/application.rb @@ -1,3 +1,5 @@ +require 'tmpdir' + module Refinery module Application class << self @@ -29,7 +31,7 @@ def self.method_missing(method_sym, *arguments, &block) base.config.filter_parameters += [:password, :password_confirmation] # Specify a cache store to use - base.config.cache_store = :memory_store + base.config.cache_store = :file_store, File.join(Dir.tmpdir, base.name.to_s.gsub(':', File::SEPARATOR)) # Include the refinery controllers and helpers dynamically base.config.to_prepare do