Browse Source

Merge pull request #2150 from annando/1512-probe-url-caching

probe_url: Only cache successful results
pull/2152/head
Tobias Diekershoff 6 years ago
parent
commit
2dc0b2b731
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/Scrape.php

+ 1
- 1
include/Scrape.php View 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;


Loading…
Cancel
Save