aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-02-01 10:17:27 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-02-01 10:17:27 +0100
commit042aa2e169310bc23398d0558455a61fe1e86a92 (patch)
tree50ae4d8845bc16e2edfbaa916e80d8709ee3fe86 /include/poller.php
parent1151124feed13ebe1bf87bdcebf9692a5ce6233e (diff)
parent89313235d26569df5cbdabb1f85871f10056e41f (diff)
downloadvolse-hubzilla-042aa2e169310bc23398d0558455a61fe1e86a92.tar.gz
volse-hubzilla-042aa2e169310bc23398d0558455a61fe1e86a92.tar.bz2
volse-hubzilla-042aa2e169310bc23398d0558455a61fe1e86a92.zip
Merge remote branch 'friendika-master/master'
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php4
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;