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