Use env() properly throughout panel to avoid cache issues.
This commit is contained in:
parent
9a581ef536
commit
4f16509447
14 changed files with 68 additions and 100 deletions
|
@ -64,7 +64,7 @@ class ClearTasks extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
$entries = Models\TaskLog::where('run_time', '<=', Carbon::now()->subHours(env('APP_CLEAR_TASKLOG', 720))->toAtomString())->get();
|
||||
$entries = Models\TaskLog::where('run_time', '<=', Carbon::now()->subHours(config('pterodactyl.tasks.clear_log'))->toAtomString())->get();
|
||||
|
||||
$this->info(sprintf('Preparing to delete %d old task log entries.', count($entries)));
|
||||
$bar = $this->output->createProgressBar(count($entries));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue