From 0ccb29c4dfa709c279168209a53e38f6fc863807 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 6 Apr 2018 16:52:01 +0000 Subject: [PATCH] Only compare the HTML when we forcefully ignore the cache --- include/text.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/text.php b/include/text.php index 957145ca1..ee8a213ff 100644 --- a/include/text.php +++ b/include/text.php @@ -1198,7 +1198,12 @@ function put_item_in_cache(&$item, $update = false) $item["rendered-hash"] = hash("md5", $item["body"]); // Force an update if the generated values differ from the existing ones - if (($rendered_hash != $item["rendered-hash"]) || ($rendered_html != $item["rendered-html"])) { + if ($rendered_hash != $item["rendered-hash"]) { + $update = true; + } + + // Only compare the HTML when we forcefully ignore the cache + if (Config::get("system", "ignore_cache") && ($rendered_html != $item["rendered-html"])) { $update = true; }