From c3d6205a4ba92e25f1092ac9c1f4e72ee3c796ed Mon Sep 17 00:00:00 2001 From: Doug Barth Date: Thu, 9 Oct 2008 10:37:28 -0500 Subject: Fix cache counter semantics for MemoryCache, FileStoreCache, and (presumably) the DRbStore. Signed-off-by: Michael Koziarski --- activesupport/lib/active_support/cache/file_store.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index ef533633b2..ffe0baba99 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -16,6 +16,7 @@ module ActiveSupport super ensure_cache_path(File.dirname(real_file_path(name))) File.atomic_write(real_file_path(name), cache_path) { |f| Marshal.dump(value, f) } + value rescue => e logger.error "Couldn't create cache directory: #{name} (#{e.message})" if logger end -- cgit v1.2.3