Remove deprecated methods

This commit is contained in:
Jeremy Benoist 2020-07-08 07:25:44 +02:00
parent effa5deacb
commit 33d245b7da
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 3 additions and 6 deletions

View file

@ -27,8 +27,7 @@ class TagRepository extends EntityRepository
if (null !== $cacheLifeTime) {
$query->useQueryCache(true);
$query->useResultCache(true);
$query->setResultCacheLifetime($cacheLifeTime);
$query->enableResultCache($cacheLifeTime);
}
return \count($query->getArrayResult());

View file

@ -109,8 +109,7 @@ class WallabagExtension extends AbstractExtension implements GlobalsInterface
->getQuery();
$query->useQueryCache(true);
$query->useResultCache(true);
$query->setResultCacheLifetime($this->lifeTime);
$query->enableResultCache($this->lifeTime);
return \count($query->getArrayResult());
}
@ -150,8 +149,7 @@ class WallabagExtension extends AbstractExtension implements GlobalsInterface
->getQuery();
$query->useQueryCache(true);
$query->useResultCache(true);
$query->setResultCacheLifetime($this->lifeTime);
$query->enableResultCache($this->lifeTime);
$nbArchives = \count($query->getArrayResult());