From: Michael Vogel Date: Sun, 6 Dec 2015 11:15:31 +0000 (+0100) Subject: probe_url: Only cache successful results X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c7baa77d67b1e4fa82d77081e969a70e4094237;p=friendica.git probe_url: Only cache successful results --- diff --git a/include/Scrape.php b/include/Scrape.php index 4f9d675c18..af90a07506 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -831,7 +831,7 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) { } // Only store into the cache if the value seems to be valid - if ($result['network'] != NETWORK_FEED) + if ($result['network'] != NETWORK_PHANTOM) Cache::set("probe_url:".$mode.":".$url,serialize($result), CACHE_DAY); return $result;