Commit 45d8a5b2 authored by Nicolas Widart's avatar Nicolas Widart

Setting the app name on the app.version cache.

This prevents issues when there are multiple asgardcms installations on the same sever (using the same cache store).
parent 2aebf5f0
......@@ -63,7 +63,9 @@ class ApplicationVersionViewComposer
*/
private function getComposerFile()
{
$composerFile = $this->cache->remember('app.version', 1440, function () {
$appName = str_slug(config('app.name'));
$composerFile = $this->cache->remember("app.version.$appName", 1440, function () {
return $this->filesystem->get('composer.json');
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment