diff options
author | Doug Barth <dougbarth@gmail.com> | 2008-10-09 10:37:28 -0500 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-10-17 18:09:26 +0200 |
commit | c3d6205a4ba92e25f1092ac9c1f4e72ee3c796ed (patch) | |
tree | 3e00512e55886d0bb281a58fb087657f39d57b87 /activesupport/lib | |
parent | 95c609357e78106e9673931d3f60d8ff3cc0a0cd (diff) | |
download | rails-c3d6205a4ba92e25f1092ac9c1f4e72ee3c796ed.tar.gz rails-c3d6205a4ba92e25f1092ac9c1f4e72ee3c796ed.tar.bz2 rails-c3d6205a4ba92e25f1092ac9c1f4e72ee3c796ed.zip |
Fix cache counter semantics for MemoryCache, FileStoreCache, and (presumably) the DRbStore.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/cache/file_store.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |