* Added js variable wgCurRevisionId to the output
* Added js variable wgOldId which shows the oldid when viewing an old revision
* (bug 8141) Cleanup of Parser::doTableStuff, patch by AzaTht
+* (bug 8042) Make miser mode caching limits settable via $wgQueryCacheLimit
+ instead of hardcoding to 1000
+* Avoid notice when contribs query page class is instantiated in batch mode
+
== Languages updated ==
$wgMiserMode = false;
/** Disable all query pages if miser mode is on, not just some */
$wgDisableQueryPages = false;
+/** Number of rows to cache in 'querycache' table when miser mode is on */
+$wgQueryCacheLimit = 1000;
/** Generate a watchlist once every hour or so */
$wgUseWatchlistCache = false;
/** The hour or so mentioned above */
* Constructor.
* @param $username username to list contribs for (or "newbies" for extra magic)
*/
- function __construct( $username ) {
+ function __construct( $username='' ) {
$this->user = User::newFromName( $username, false );
}
if ( $queryPage->isExpensive() ) {
$t1 = explode( ' ', microtime() );
# Do the query
- $num = $queryPage->recache( $limit === null ? 1000 : $limit );
+ $num = $queryPage->recache( $limit === null ? $wgQueryCacheLimit : $limit );
$t2 = explode( ' ', microtime() );
if ( $num === false ) {