cleanup_cli force mode

This commit is contained in:
xiaomlove
2021-06-15 02:18:00 +08:00
parent c367fef2a4
commit f3f9c88065
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -21,7 +21,12 @@ if (isset($_SERVER['argv'][1])) {
}
try {
$result = autoclean($force, true);
if ($force) {
require_once($rootpath . 'include/cleanup.php');
return docleanup(1, true);
} else {
$result = autoclean();
}
do_log("[CLEANUP_CLI DONE!] $result");
} catch (\Exception $exception) {
do_log("ERROR: " . $exception->getMessage());