mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
delete old cache in poller.php
This commit is contained in:
parent
6efc78e0e4
commit
3dbca2a804
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ function poller_run($argv, $argc){
|
|||
$php_path = ((x($a->config,'php_path') && strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
|
||||
//proc_close(proc_open("\"$php_path\" \"include/queue.php\" &", array(), $foo));
|
||||
proc_run($php_path,"include/queue.php");
|
||||
|
||||
// clear old cache
|
||||
q("DELETE FROM `cache` WHERE `updated`<'%s'",
|
||||
dbesc(datetime_convert('UTC','UTC',"now - 30 days")));
|
||||
|
||||
|
||||
$hub_update = false;
|
||||
|
|
Loading…
Reference in a new issue