Add option to disable purging of inactive user accounts

This commit is contained in:
DariusIII
2019-04-28 21:59:09 +02:00
parent fdb0aa4a53
commit 189bda93bd
4 changed files with 7 additions and 1 deletions
+2
View File
@@ -150,3 +150,5 @@ TELESCOPE_SCHEDULE_WATCHER=true
HORIZON_PREFIX=horizon:
POSTMARK_TOKEN=
PURGE_INACTIVE_USERS=false;
+1
View File
@@ -1,4 +1,5 @@
2019-04-28 DariusIII
* Chg: Add option to disable purging of inactive user accounts
* Fix: Throw API error if apikey is missing
* Chg: Update nesbot/carbon (2.17.0 => 2.17.1) and intervention/imagecache (2.3.3 => 2.3.4)
2019-04-25 DariusIII
+3 -1
View File
@@ -30,7 +30,9 @@ class Kernel extends ConsoleKernel
$schedule->exec('php '.base_path().'/misc/testing/DB/checkUsers.php')->twiceDaily(1, 13);
$schedule->command('telescope:prune')->daily();
$schedule->command('horizon:snapshot')->everyFiveMinutes();
$schedule->job(new RemoveInactiveAccounts())->daily();
if (config('nntmux.purge_inactive_users') === true) {
$schedule->job(new RemoveInactiveAccounts())->daily();
}
}
/**
+1
View File
@@ -22,4 +22,5 @@ return [
'multiprocessing_max_children_override' => env('NN_MULTIPROCESSING_MAX_CHILDREN_OVERRIDE', 0),
'multiprocessing_log_type' => env('NN_MULTIPROCESSING_LOG_TYPE', 6),
'multiprocessing_child_output_type' => env('NN_MULTIPROCESSING_CHILD_OUTPUT_TYPE', 1),
'purge_inactive_users' => env('PURGE_INACTIVE_USERS', false),
];