Only compare the HTML when we forcefully ignore the cache
This commit is contained in:
parent
297784880e
commit
0ccb29c4df
1 changed files with 6 additions and 1 deletions
|
@ -1198,7 +1198,12 @@ function put_item_in_cache(&$item, $update = false)
|
||||||
$item["rendered-hash"] = hash("md5", $item["body"]);
|
$item["rendered-hash"] = hash("md5", $item["body"]);
|
||||||
|
|
||||||
// Force an update if the generated values differ from the existing ones
|
// 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;
|
$update = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue