lib/relaton/db_cache.rb in relaton-1.0.0 vs lib/relaton/db_cache.rb in relaton-1.0.1
- old
+ new
@@ -24,11 +24,11 @@
end
prefix_dir = "#{@dir}/#{prefix(key)}"
unless Dir.exist? prefix_dir
FileUtils::mkdir_p prefix_dir
- set_version prefix_dir
end
+ set_version prefix_dir
ex = if value =~ /^not_found/ then "notfound"
elsif value =~ /^redirection/ then "redirect"
else @ext
end
File.write "#{filename(key)}.#{ex}", value, encoding: "utf-8"