mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 11:01:04 +00:00
Remove deprecated methods
This commit is contained in:
parent
effa5deacb
commit
33d245b7da
2 changed files with 3 additions and 6 deletions
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue