This commit is contained in:
erwanlr
2016-02-04 20:37:13 +01:00
parent 55dc665404
commit addeab8947

View File

@@ -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))