Skip to content

Commit

Permalink
fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ad3n committed Jan 23, 2022
1 parent b2136e1 commit 0c99d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Repository/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 0c99d0f

Please sign in to comment.