mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
schedule the queue re-delivery process
This commit is contained in:
parent
0bcb68200e
commit
fb58801aa4
3 changed files with 30 additions and 5 deletions
|
@ -45,7 +45,7 @@ function remove_queue_item($id) {
|
|||
q("DELETE FROM `queue` WHERE `created` < UTC_TIMESTAMP() - INTERVAL 3 DAY");
|
||||
}
|
||||
|
||||
$r = q("SELECT `id` FROM `queue` WHERE 1 ");
|
||||
$r = q("SELECT `id` FROM `queue` WHERE `last` < UTC_TIMESTAMP() - INTERVAL 15 MINUTE ");
|
||||
|
||||
if(! count($r))
|
||||
killme();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue