Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -270,10 +270,14 @@ |
271 | 271 | * @param $ignoreErrors Boolean: whether to ignore database errors |
272 | 272 | */ |
273 | 273 | function recache( $limit, $ignoreErrors = true ) { |
| 274 | + if ( !$this->isCacheable() ) { |
| 275 | + return 0; |
| 276 | + } |
| 277 | + |
274 | 278 | $fname = get_class( $this ) . '::recache'; |
275 | 279 | $dbw = wfGetDB( DB_MASTER ); |
276 | 280 | $dbr = wfGetDB( DB_SLAVE, array( $this->getName(), __METHOD__, 'vslow' ) ); |
277 | | - if ( !$dbw || !$dbr || !$this->isCacheable() ) { |
| 281 | + if ( !$dbw || !$dbr ) { |
278 | 282 | return false; |
279 | 283 | } |
280 | 284 | |