lib/billy/cache.rb in puffing-billy-0.11.1 vs lib/billy/cache.rb in puffing-billy-0.12.0

- old
+ new

@@ -116,10 +116,16 @@ formatted_url end def cache_file(key) - File.join(Billy.config.cache_path, "#{key}.yml") + file = File.join(Billy.config.cache_path, "#{key}.yml") + + if File.symlink? file + file = File.readlink file + end + + file end def scope_to(new_scope = nil) self.scope = new_scope end