Skip to content

Commit

Permalink
Reduce refresh interval to 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
PtrTn committed Jun 1, 2019
1 parent ebd6285 commit d043dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Infrastructure/Repository/CachedResponseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function findMostOutdated(): array
{
return $this->createQueryBuilder('cr')
->where('cr.updatedAt < :threshold')
->setParameter('threshold', new DateTimeImmutable('-5 minutes'), Type::DATETIME)
->setParameter('threshold', new DateTimeImmutable('-1 hour'), Type::DATETIME)
->orderBy('cr.updatedAt', 'DESC')
->setMaxResults(5)
->getQuery()
Expand Down

0 comments on commit d043dca

Please sign in to comment.