Merge branch 'fix-documents-notcached'

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/69/head
Maxence Lange 2018-11-28 14:17:34 -01:00
commit 107c49d141
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -150,7 +150,8 @@ class CacheDocumentsRequest extends CacheDocumentsRequestBuilder {
$qb = $this->getCacheDocumentsSelectSql();
$this->limitToDBFieldEmpty($qb, 'local_copy');
$this->limitToCaching($qb, self::CACHE_TTL);
$this->limitToDBFieldInt($qb, 'error', 0);
$documents = [];
$cursor = $qb->execute();
while ($data = $cursor->fetch()) {