| Index: trunk/phase3/maintenance/updateSpecialPages.php |
| — | — | @@ -45,7 +45,7 @@ |
| 46 | 46 | if ( $queryPage->isExpensive() ) { |
| 47 | 47 | $t1 = explode( ' ', microtime() ); |
| 48 | 48 | # Do the query |
| 49 | | - $num = $queryPage->recache( $limit === null ? 1000 : $limit ); |
| | 49 | + $num = $queryPage->recache( $limit === null ? $wgQueryCacheLimit : $limit ); |
| 50 | 50 | $t2 = explode( ' ', microtime() ); |
| 51 | 51 | |
| 52 | 52 | if ( $num === false ) { |
| Index: trunk/phase3/includes/SpecialContributions.php |
| — | — | @@ -16,7 +16,7 @@ |
| 17 | 17 | * Constructor. |
| 18 | 18 | * @param $username username to list contribs for (or "newbies" for extra magic) |
| 19 | 19 | */ |
| 20 | | - function __construct( $username ) { |
| | 20 | + function __construct( $username='' ) { |
| 21 | 21 | $this->user = User::newFromName( $username, false ); |
| 22 | 22 | } |
| 23 | 23 | |
| Index: trunk/phase3/includes/DefaultSettings.php |
| — | — | @@ -1182,6 +1182,8 @@ |
| 1183 | 1183 | $wgMiserMode = false; |
| 1184 | 1184 | /** Disable all query pages if miser mode is on, not just some */ |
| 1185 | 1185 | $wgDisableQueryPages = false; |
| | 1186 | +/** Number of rows to cache in 'querycache' table when miser mode is on */ |
| | 1187 | +$wgQueryCacheLimit = 1000; |
| 1186 | 1188 | /** Generate a watchlist once every hour or so */ |
| 1187 | 1189 | $wgUseWatchlistCache = false; |
| 1188 | 1190 | /** The hour or so mentioned above */ |
| Index: trunk/phase3/RELEASE-NOTES |
| — | — | @@ -249,7 +249,11 @@ |
| 250 | 250 | * Added js variable wgCurRevisionId to the output |
| 251 | 251 | * Added js variable wgOldId which shows the oldid when viewing an old revision |
| 252 | 252 | * (bug 8141) Cleanup of Parser::doTableStuff, patch by AzaTht |
| | 253 | +* (bug 8042) Make miser mode caching limits settable via $wgQueryCacheLimit |
| | 254 | + instead of hardcoding to 1000 |
| | 255 | +* Avoid notice when contribs query page class is instantiated in batch mode |
| 253 | 256 | |
| | 257 | + |
| 254 | 258 | == Languages updated == |
| 255 | 259 | |
| 256 | 260 | * Bishnupriya Manipuri (bpy) |