diff --git a/lib/Repository/UserRepository.php b/lib/Repository/UserRepository.php index ef4d7ee2..dafe55be 100755 --- a/lib/Repository/UserRepository.php +++ b/lib/Repository/UserRepository.php @@ -87,7 +87,7 @@ public function findByDeviceId(string $deviceId): ?AppUser $query = $queryBuilder->getQuery(); $query->useQueryCache(true); - $query->enableResultCache(self::MICRO_CACHE, sprintf("%s_%s_%s_%s", $deviceId, sha1(self::class), sha1(__METHOD__), $deviceId)); + $query->enableResultCache(self::MICRO_CACHE, sprintf("%s_%s_%s", sha1(self::class), sha1(__METHOD__), $deviceId)); return $query->getOneOrNullResult(); }