Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Gigadrive
qpost
qpost
Commits
5ef16a13
Verified
Commit
5ef16a13
authored
Aug 28, 2020
by
Mehdi Baaboura
Browse files
Disabled result cache for TokenRepository#getTokenById
parent
2793068a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/Repository/TokenRepository.php
src/Repository/TokenRepository.php
+1
-3
No files found.
src/Repository/TokenRepository.php
View file @
5ef16a13
<?php
/*
*
/*
* Copyright (C) 2018-2020 Gigadrive - All rights reserved.
* https://gigadrivegroup.com
* https://qpostapp.com
...
...
@@ -23,7 +23,6 @@ namespace qpost\Repository;
use
Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository
;
use
Doctrine\DBAL\Types\Type
;
use
Doctrine\Persistence\ManagerRegistry
;
use
qpost\Constants\MiscConstants
;
use
qpost\Entity\Token
;
use
qpost\Entity\User
;
...
...
@@ -45,7 +44,6 @@ class TokenRepository extends ServiceEntityRepository {
->
setMaxResults
(
1
)
->
getQuery
()
->
useQueryCache
(
true
)
->
enableResultCache
(
MiscConstants
::
RESULT_CACHE_LIFETIME_SHORT
)
->
getOneOrNullResult
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment