mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-22 17:11:07 +00:00
commit
11fa4ac4f0
4 changed files with 318 additions and 223 deletions
|
@ -53,7 +53,6 @@
|
|||
"bdunogier/guzzle-site-authenticator": "^1.0.0",
|
||||
"craue/config-bundle": "^2.3.0",
|
||||
"defuse/php-encryption": "^2.1",
|
||||
"doctrine/dbal": "2.9.2",
|
||||
"doctrine/doctrine-bundle": "^1.9",
|
||||
"doctrine/doctrine-cache-bundle": "^1.3",
|
||||
"doctrine/doctrine-migrations-bundle": "^1.3",
|
||||
|
@ -106,10 +105,10 @@
|
|||
"m6web/redis-mock": "^5.0",
|
||||
"php-http/mock-client": "^1.0",
|
||||
"phpstan/extension-installer": "^1.0",
|
||||
"phpstan/phpstan": "^0.12.0",
|
||||
"phpstan/phpstan-doctrine": "^0.12.0",
|
||||
"phpstan/phpstan-phpunit": "^0.12.0",
|
||||
"phpstan/phpstan-symfony": "^0.12.0",
|
||||
"phpstan/phpstan": "^0.12",
|
||||
"phpstan/phpstan-doctrine": "^0.12",
|
||||
"phpstan/phpstan-phpunit": "^0.12",
|
||||
"phpstan/phpstan-symfony": "^0.12",
|
||||
"symfony/maker-bundle": "^1.18",
|
||||
"symfony/phpunit-bridge": "~5.1.1"
|
||||
},
|
||||
|
|
523
composer.lock
generated
523
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -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