]> git.mxchange.org Git - friendica.git/commitdiff
probe_url: Only cache successful results
authorMichael Vogel <icarus@dabo.de>
Sun, 6 Dec 2015 11:15:31 +0000 (12:15 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 6 Dec 2015 11:15:31 +0000 (12:15 +0100)
include/Scrape.php

index 4f9d675c1801309f5d11fee3a6bd2a79b28ea21e..af90a07506af141ef34fbad327c7c68aad439298 100644 (file)
@@ -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;