mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 02:47:27 +08:00
cleanup_cli force mode
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user