From 7646caf82eefa77764f9cee57ec1d61ef91a7695 Mon Sep 17 00:00:00 2001 From: EnesSacid-Buker <73346401+EnesSacid-Buker@users.noreply.github.com> Date: Mon, 28 Feb 2022 19:42:33 +0300 Subject: [PATCH] Module update clear cache. --- app/Jobs/Install/FinishUpdate.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Jobs/Install/FinishUpdate.php b/app/Jobs/Install/FinishUpdate.php index 2b124b556..2a374e67e 100644 --- a/app/Jobs/Install/FinishUpdate.php +++ b/app/Jobs/Install/FinishUpdate.php @@ -8,6 +8,7 @@ use App\Models\Module\Module; use App\Traits\Modules; use App\Utilities\Console; use Illuminate\Filesystem\Filesystem; +use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\File; class FinishUpdate extends Job @@ -81,6 +82,8 @@ class FinishUpdate extends Job $listener = $this->getListenerTypeOfModule(); if ($listener == 'none') { + Artisan::call('cache:clear'); + return []; }