lib/nanoc/base/services/compiler/phases/cache.rb in nanoc-4.6.2 vs lib/nanoc/base/services/compiler/phases/cache.rb in nanoc-4.6.3

- old
+ new

@@ -24,9 +24,14 @@ @compiled_content_cache[rep] = @snapshot_repo.get_all(rep) end contract Nanoc::Int::ItemRep, C::KeywordArgs[is_outdated: C::Bool] => C::Bool def can_reuse_content_for_rep?(rep, is_outdated:) - !is_outdated && !@compiled_content_cache[rep].nil? + if is_outdated + false + else + cache = @compiled_content_cache[rep] + cache ? cache.none? { |_snapshot_name, content| content.binary? } : false + end end end end