From 3dbca2a8041540a9e8a336db21fc28fc3b6bc5d7 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Mon, 31 Jan 2011 17:16:35 +0100 Subject: delete old cache in poller.php --- include/poller.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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; -- cgit v1.2.3