aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-31 15:26:02 -0800
committerFriendika <info@friendika.com>2011-01-31 15:26:02 -0800
commit082909fe1a861219c4f9159f8f8df5aea7546da9 (patch)
tree1a1ed610cb668e2cbff10e95ebec1ffed19b58f9 /include/poller.php
parentfc20fb17c299100fd39e900f20c70d823baaebdf (diff)
parentbdbbfe17b0ab58a89a0673f5409d30870afd0b9d (diff)
downloadvolse-hubzilla-082909fe1a861219c4f9159f8f8df5aea7546da9.tar.gz
volse-hubzilla-082909fe1a861219c4f9159f8f8df5aea7546da9.tar.bz2
volse-hubzilla-082909fe1a861219c4f9159f8f8df5aea7546da9.zip
Merge branch 'fabrixxm-oembed'
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;