diff --git a/lib/cache.rb b/lib/cache.rb index 69ef8f905..d4ed9235a 100644 --- a/lib/cache.rb +++ b/lib/cache.rb @@ -10,6 +10,8 @@ delete a cache def self.delete(key) Rails.cache.delete(key.to_s) + rescue => e + Rails.logger.error "ERROR: Cache.delete #{e.message}" end =begin @@ -31,7 +33,7 @@ write a cache begin Rails.cache.write(key.to_s, data, params) rescue => e - Rails.logger.error "NOTICE: #{e.message}" + Rails.logger.error "ERROR: Cache.write #{e.message}" end end