Cache version data (#14404)

* Cache version data
Calling cli commands can be expensive, cache the results.

* style fixes

* Fix pre-laravel usage

* fix lint
This commit is contained in:
Tony Murray
2022-09-28 23:23:32 -05:00
committed by GitHub
parent 59f9d90559
commit f60b6788d3
4 changed files with 147 additions and 96 deletions

View File

@@ -68,7 +68,7 @@ class AboutController extends Controller
'db_schema' => vsprintf('%s (%s)', $version->database()),
'git_log' => $version->gitChangelog(),
'git_date' => $version->gitDate(),
'git_date' => $version->localDate(),
'project_name' => Config::get('project_name'),
'version_local' => $version->local(),