delete old cache in poller.php

pull/1/head
Fabio Comuni 2011-01-31 17:16:35 +01:00
rodzic 6efc78e0e4
commit 3dbca2a804
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -31,6 +31,10 @@ function poller_run($argv, $argc){
//proc_close(proc_open("\"$php_path\" \"include/queue.php\" &", array(), $foo)); //proc_close(proc_open("\"$php_path\" \"include/queue.php\" &", array(), $foo));
proc_run($php_path,"include/queue.php"); 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; $hub_update = false;
$force = false; $force = false;