From 8e2353ad3e683c94d9727c5cd9efa53df76ea4c7 Mon Sep 17 00:00:00 2001 From: Dag Date: Tue, 1 Aug 2023 06:19:42 +0200 Subject: [PATCH] fix: write to cache only if data is was not cached, fix #3586 (#3588) --- lib/contents.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/contents.php b/lib/contents.php index 5587a98e..c842ccbc 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -432,8 +432,6 @@ function getSimpleHTMLDOMCached( $content = $cache->loadData($timeout); if (!$content || Debug::isEnabled()) { $content = getContents($url, $header ?? [], $opts ?? []); - } - if ($content) { $cache->setScope('pages'); $cache->setKey([$url]); $cache->saveData($content);