Some code optimalisations.

This commit is contained in:
James Cole
2018-06-10 16:59:41 +02:00
parent 6743d99d9b
commit 5a058491b0
11 changed files with 40 additions and 11 deletions

View File

@@ -24,7 +24,6 @@ namespace FireflyIII\Support;
use Cache;
use Illuminate\Support\Collection;
use Preferences as Prefs;
/**
* Class CacheProperties.
@@ -44,7 +43,7 @@ class CacheProperties
$this->properties = new Collection;
if (auth()->check()) {
$this->addProperty(auth()->user()->id);
$this->addProperty(Prefs::lastActivity());
$this->addProperty(app('preferences')->lastActivity());
}
}