add cli force

This commit is contained in:
xiaomlove
2021-06-15 02:02:09 +08:00
parent 61f9260fb1
commit c367fef2a4
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -1898,7 +1898,7 @@ function userlogin() {
return $loginResult = true;
}
function autoclean() {
function autoclean($forceAll = 0, $printProgress = false) {
global $autoclean_interval_one, $rootpath;
$now = TIMENOW;
$res = sql_query("SELECT value_u FROM avps WHERE arg = 'lastcleantime'");
@@ -1919,7 +1919,7 @@ function autoclean() {
return false;
}
require_once($rootpath . 'include/cleanup.php');
return docleanup();
return docleanup($forceAll, $printProgress);
}
function unesc($x) {