lib/nanoc/base/compilation/compiler.rb in nanoc-3.3.6 vs lib/nanoc/base/compilation/compiler.rb in nanoc-3.3.7
- old
+ new
@@ -368,10 +368,10 @@
Nanoc::NotificationCenter.post(:visit_started, rep.item)
# Calculate rule memory if we haven’t yet done do
rules_collection.new_rule_memory_for_rep(rep)
- if !outdatedness_checker.outdated?(rep) && compiled_content_cache[rep]
+ if !rep.item.forced_outdated? && !outdatedness_checker.outdated?(rep) && compiled_content_cache[rep]
# Reuse content
Nanoc::NotificationCenter.post(:cached_content_used, rep)
rep.content = compiled_content_cache[rep]
else
# Recalculate content