From addeab894769a26f0483f2159fc72c66682873ee Mon Sep 17 00:00:00 2001 From: erwanlr Date: Thu, 4 Feb 2016 20:37:13 +0100 Subject: [PATCH] Fixes #900 --- lib/common/cache_file_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/cache_file_store.rb b/lib/common/cache_file_store.rb index c891aefa..a0f34e3c 100644 --- a/lib/common/cache_file_store.rb +++ b/lib/common/cache_file_store.rb @@ -51,7 +51,7 @@ class CacheFileStore end def write_entry(key, data_to_store, cache_ttl) - if cache_ttl > 0 + if cache_ttl && cache_ttl > 0 File.open(get_entry_file_path(key), 'w') do |f| begin f.write(@serializer.dump(data_to_store))