mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Force cache rebuild after update
This commit is contained in:
parent
caefa45476
commit
8fc9cdd6d8
@ -14,6 +14,7 @@ namespace App\Http\Controllers;
|
|||||||
use App\Exceptions\FilePermissionsFailure;
|
use App\Exceptions\FilePermissionsFailure;
|
||||||
use App\Models\Client;
|
use App\Models\Client;
|
||||||
use App\Utils\Ninja;
|
use App\Utils\Ninja;
|
||||||
|
use App\Utils\Traits\AppSetup;
|
||||||
use App\Utils\Traits\ClientGroupSettingsSaver;
|
use App\Utils\Traits\ClientGroupSettingsSaver;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
use Illuminate\Support\Facades\Artisan;
|
||||||
@ -23,6 +24,7 @@ class SelfUpdateController extends BaseController
|
|||||||
{
|
{
|
||||||
use DispatchesJobs;
|
use DispatchesJobs;
|
||||||
use ClientGroupSettingsSaver;
|
use ClientGroupSettingsSaver;
|
||||||
|
use AppSetup;
|
||||||
|
|
||||||
private array $purge_file_list = [
|
private array $purge_file_list = [
|
||||||
'bootstrap/cache/compiled.php',
|
'bootstrap/cache/compiled.php',
|
||||||
@ -161,6 +163,8 @@ class SelfUpdateController extends BaseController
|
|||||||
Artisan::call('migrate', ['--force' => true]);
|
Artisan::call('migrate', ['--force' => true]);
|
||||||
Artisan::call('optimize');
|
Artisan::call('optimize');
|
||||||
|
|
||||||
|
$this->buildCache(true);
|
||||||
|
|
||||||
nlog("Called Artisan commands");
|
nlog("Called Artisan commands");
|
||||||
|
|
||||||
return response()->json(['message' => 'Update completed'], 200);
|
return response()->json(['message' => 'Update completed'], 200);
|
||||||
|
Loading…
Reference in New Issue
Block a user