New setting for requery days
This commit is contained in:
parent
d9f23dbb20
commit
c6d9b2da23
3 changed files with 10 additions and 2 deletions
|
@ -1259,8 +1259,12 @@ function poco_discover($complete = false) {
|
|||
|
||||
$no_of_queries = 5;
|
||||
|
||||
//$last_update = date("c", time() - (60 * 60 * 24)); // 24
|
||||
$last_update = date("c", time() - (60 * 60 * 24 * 7));
|
||||
$requery_days = intval(get_config("system", "poco_requery_days"));
|
||||
|
||||
if ($requery_days == 0)
|
||||
$requery_days = 7;
|
||||
|
||||
$last_update = date("c", time() - (60 * 60 * 24 * $requery_days));
|
||||
|
||||
$r = q("SELECT `poco`, `nurl`, `url`, `network` FROM `gserver` WHERE `last_contact` >= `last_failure` AND `poco` != '' AND `last_poco_query` < '%s' ORDER BY RAND()", dbesc($last_update));
|
||||
if ($r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue