Merge branch 'develop' into feature/admin-retheme

This commit is contained in:
Dane Everitt
2017-02-23 21:24:17 -05:00
12 changed files with 31 additions and 15 deletions

View File

@@ -113,7 +113,7 @@ class Server extends Model
public static function byUuid($uuid)
{
// Results are cached because we call this functions a few times on page load.
$result = Cache::remember('Server.byUuid.' . $uuid, 60, function () use ($uuid) {
$result = Cache::remember('Server.byUuid.' . $uuid . Auth::user()->uuid, 60, function () use ($uuid) {
$query = self::with('service', 'node')->where(function ($q) use ($uuid) {
$q->where('uuidShort', $uuid)->orWhere('uuid', $uuid);
});