From ced3daf9c6fd0b6e15e8acf9af0301e4652a9807 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 29 May 2016 17:49:09 +0300 Subject: [PATCH] Added clear commands when updating --- app/Http/Controllers/AppController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Http/Controllers/AppController.php b/app/Http/Controllers/AppController.php index a602ae7ecb85..d776f7224692 100644 --- a/app/Http/Controllers/AppController.php +++ b/app/Http/Controllers/AppController.php @@ -262,6 +262,12 @@ class AppController extends BaseController if (!Utils::isNinjaProd()) { try { set_time_limit(60 * 5); + Artisan::call('clear-compiled'); + Artisan::call('cache:clear'); + Artisan::call('debugbar:clear'); + Artisan::call('route:clear'); + Artisan::call('view:clear'); + Artisan::call('config:clear'); Artisan::call('optimize', array('--force' => true)); Cache::flush(); Session::flush();