diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-01-31 17:16:35 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-01-31 17:16:35 +0100 |
commit | 3dbca2a8041540a9e8a336db21fc28fc3b6bc5d7 (patch) | |
tree | 71f0b9f42ea15fc4ce683583cb1fb1624495e359 /include/poller.php | |
parent | 6efc78e0e42d651211116739579dc6319ca9c5b1 (diff) | |
download | volse-hubzilla-3dbca2a8041540a9e8a336db21fc28fc3b6bc5d7.tar.gz volse-hubzilla-3dbca2a8041540a9e8a336db21fc28fc3b6bc5d7.tar.bz2 volse-hubzilla-3dbca2a8041540a9e8a336db21fc28fc3b6bc5d7.zip |
delete old cache in poller.php
Diffstat (limited to 'include/poller.php')
-rw-r--r-- | include/poller.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/poller.php b/include/poller.php index 4567a5cfc..2ba285b7b 100644 --- a/include/poller.php +++ b/include/poller.php @@ -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; |