Item cache now is one day.
This commit is contained in:
parent
739309abd0
commit
9ca5de8c28
|
@ -75,7 +75,7 @@ function poller_run($argv, $argc){
|
|||
if ($dh = opendir($cache)) {
|
||||
while (($file = readdir($dh)) !== false) {
|
||||
$fullpath = $cache."/".$file;
|
||||
if ((filetype($fullpath) == "file") and filectime($fullpath) < (time() - 1800))
|
||||
if ((filetype($fullpath) == "file") and filectime($fullpath) < (time() - 86400))
|
||||
unlink($fullpath);
|
||||
}
|
||||
closedir($dh);
|
||||
|
|
Loading…
Reference in a new issue