lib/sprockets/base.rb in sprockets-3.0.0.rc.1 vs lib/sprockets/base.rb in sprockets-3.0.0.rc.2

- old
+ new

@@ -48,10 +48,10 @@ # Caveat: Digests are cached by the path's current mtime. Its possible # for a files contents to have changed and its mtime to have been # negligently reset thus appearing as if the file hasn't changed on # disk. Also, the mtime is only read to the nearest second. Its # also possible the file was updated more than once in a given second. - cache.fetch(['file_digest', path, stat.mtime.to_i]) do + cache.fetch("file_digest:#{path}:#{stat.mtime.to_i}") do self.stat_digest(path, stat) end end end