Enable by setting $wgEnableJavaScriptTest to true.
* Extensions can use the RequestContextCreateSkin hook to override what skin is
loaded in some contexts.
+* (bug 33456) Show $wgQueryCacheLimit on cached query pages.
=== Bug fixes in 1.19 ===
* $wgUploadNavigationUrl should be used for file redlinks if.
* real, honest-to-gosh query page.
*/
function execute( $par ) {
+ global $wgQueryCacheLimit;
if ( !$this->userCanExecute( $this->getUser() ) ) {
$this->displayRestrictionError();
return;
# Fetch the timestamp of this update
$ts = $this->getCachedTimestamp();
+ $lang = $this->getLanguage();
+ $maxResults = $lang->formatNum( $wgQueryCacheLimit );
if ( $ts ) {
- $lang = $this->getLanguage();
$updated = $lang->timeanddate( $ts, true, true );
$updateddate = $lang->date( $ts, true, true );
$updatedtime = $lang->time( $ts, true, true );
$out->addMeta( 'Data-Cache-Time', $ts );
$out->addInlineScript( "var dataCacheTime = '$ts';" );
- $out->addWikiMsg( 'perfcachedts', $updated, $updateddate, $updatedtime );
+ $out->addWikiMsg( 'perfcachedts', $updated, $updateddate, $updatedtime, $maxResults );
} else {
- $out->addWikiMsg( 'perfcached' );
+ $out->addWikiMsg( 'perfcached', $maxResults );
}
# If updates on this page have been disabled, let the user know
'badtitle' => 'Bad title',
'badtitletext' => 'The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title.
It may contain one or more characters which cannot be used in titles.',
-'perfcached' => 'The following data is cached and may not be up to date.',
-'perfcachedts' => 'The following data is cached, and was last updated $1.',
+'perfcached' => 'The following data is cached and may not be up to date. A maximum of $1 results are available in the cache.',
+'perfcachedts' => 'The following data is cached, and was last updated $1. A maximum of $4 results are available in the cache.',
'querypage-no-updates' => 'Updates for this page are currently disabled.
Data here will not presently be refreshed.',
'wrong_wfQuery_params' => 'Incorrect parameters to wfQuery()<br />
* $1 is the page name',
'badtitle' => 'The page title when a user requested a page with invalid page name. The content will be {{msg-mw|badtitletext}}.',
'badtitletext' => 'The message shown when a user requested a page with invalid page name. The page title will be {{msg-mw|badtitle}}.',
+'perfcached' => 'Like {{msg-mw|perfcachedts}} but used when we do not know how long ago page was cached (unlikely to happen). $1 is the max result cut off ($wgQueryCacheLimit)',
'perfcachedts' => 'Used on pages that list page lists for which the displayed data is cached. Parameters:
* $1 is a time stamp (date and time combined)
* $2 is a date (optional)
-* $3 is a time (optional)',
+* $3 is a time (optional)
+* $4 is the cut off limit for cached results ($wgQueryCacheLimit). If there are more then this many results for the query, only the first $4 of those will be listed on the page. Usually $4 is about 1000.',
'querypage-no-updates' => 'Text on some special pages, e.g. [[Special:FewestRevisions]].',
'viewsource' => 'The text displayed in place of the "edit" tab when the user has no permission to edit the page.