call('clear-compiled'); $this->call('cache:clear'); $this->call('view:clear'); if ($this->option('doNotCacheConfig')) { $this->call('config:clear'); } else { $this->call('config:cache'); // Laravel users `require` function to include config.php // If opcache is being used for few seconds config.php is being cached. if (function_exists('opcache_invalidate')) { opcache_invalidate(app()->getCachedConfigPath()); } } // Regenerate vars to get new data from .env if (!$this->option('doNotGenerateVars')) { $this->call('freescout:generate-vars'); } // This should not be done during installation. if (\Helper::isInstalled()) { \Helper::queueWorkerRestart(); } } }