Merge "Make setUp and tearDown protected in tests"
[lhc/web/wiklou.git] / includes / cache / BacklinkCache.php
index dcd8191..8eed1a5 100644 (file)
@@ -223,7 +223,7 @@ class BacklinkCache {
                                );
                        }
 
-                       if ( !$startId && !$endId && $res->numRows() < $max ) {
+                       if ( $select === 'all' && !$startId && !$endId && $res->numRows() < $max ) {
                                // The full results fit within the limit, so cache them
                                $this->fullResultCache[$table] = $res;
                        } else {