]> git.mxchange.org Git - friendica.git/commitdiff
delete old cache in poller.php
authorFabio Comuni <fabrix.xm@gmail.com>
Mon, 31 Jan 2011 16:16:35 +0000 (17:16 +0100)
committerFabio Comuni <fabrix.xm@gmail.com>
Mon, 31 Jan 2011 16:16:35 +0000 (17:16 +0100)
include/poller.php

index 4567a5cfc3d6d04a65f54677957a6d32c57b8a69..2ba285b7b67ebbf8907ee519ed6757ad6c173340 100644 (file)
@@ -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;