* @throws MWException
*/
public function __construct( $title, $action ) {
+ parent::__construct();
$allowedTypes = self::cacheablePageActions();
if ( !in_array( $action, $allowedTypes ) ) {
throw new MWException( 'Invalid file cache type given.' );
* @return bool
*/
public static function useFileCache( IContextSource $context ) {
- global $wgUseFileCache, $wgShowIPinHeader, $wgDebugToolbar, $wgContLang;
+ global $wgUseFileCache, $wgDebugToolbar, $wgContLang;
if ( !$wgUseFileCache ) {
return false;
}
- if ( $wgShowIPinHeader || $wgDebugToolbar ) {
- wfDebug( "HTML file cache skipped. Either \$wgShowIPinHeader and/or \$wgDebugToolbar on\n" );
+ if ( $wgDebugToolbar ) {
+ wfDebug( "HTML file cache skipped. \$wgDebugToolbar on\n" );
return false;
}