lib/linner/cache.rb in linner-0.6.3 vs lib/linner/cache.rb in linner-0.6.4
- old
+ new
@@ -1,12 +1,12 @@
module Linner
class Cache < Hash
- def miss? path
+ def miss? ns, path
asset = Asset.new path
- if self[path] and self[path].mtime == asset.mtime
+ if self["#{ns}:#{path}"] and self["#{ns}:#{path}"].mtime == asset.mtime
false
else
- self[path] = asset
+ self["#{ns}:#{path}"] = asset
end
end
def expire_by paths
is_include_partial_styles = paths.any? do |path|