Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -407,6 +407,9 @@ |
408 | 408 | if ( $offset !== false ) { |
409 | 409 | $options['OFFSET'] = intval( $offset ); |
410 | 410 | } |
| 411 | + if ( $this->sortDescending() ) { |
| 412 | + $options['ORDER BY'] = 'qc_value DESC'; |
| 413 | + } |
411 | 414 | $res = $dbr->select( 'querycache', array( 'qc_type', |
412 | 415 | 'qc_namespace AS namespace', |
413 | 416 | 'qc_title AS title', |
— | — | @@ -416,7 +419,7 @@ |
417 | 420 | ); |
418 | 421 | return $dbr->resultObject( $res ); |
419 | 422 | } |
420 | | - |
| 423 | + |
421 | 424 | public function getCachedTimestamp() { |
422 | 425 | if ( !is_null( $this->cachedTimestamp ) ) { |
423 | 426 | $dbr = wfGetDB( DB_SLAVE ); |