mirror of
https://github.com/friendica/friendica
synced 2024-12-23 14:00:15 +00:00
probe_url: Only cache successful results
This commit is contained in:
parent
6a05112d98
commit
7c7baa77d6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue