From 0f96e34e06ae5728946ed825100807c9adc55661 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 19 Apr 2016 16:19:23 +0200 Subject: [PATCH] Don't cache account probing for empty networks --- include/Scrape.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Scrape.php b/include/Scrape.php index 68926a997e..84257f4811 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -846,7 +846,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_PHANTOM) { + if (!in_array($result['network'], array(NETWORK_PHANTOM, ""))) { Cache::set("probe_url:".$mode.":".$original_url,serialize($result), CACHE_DAY); /// @todo temporary fix - we need a real contact update function that updates only changing fields -- 2.39.5