diff --git a/Math.hooks.php b/Math.hooks.php index a70da28..f8e4656 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -55,7 +55,6 @@ class MathHooks { if ( $wgUseMathJax && $mode == MW_MATH_MATHJAX ) { $parser->getOutput()->addModules( array( 'ext.math.mathjax.enabler' ) ); } - $renderer->writeCache(); return $wgContLang->armourMath( $renderedMath ); } diff --git a/MathTexvc.php b/MathTexvc.php index 97ccd27..8b4f877 100644 --- a/MathTexvc.php +++ b/MathTexvc.php @@ -34,6 +34,7 @@ class MathTexvc extends MathRenderer { if ( $result != MW_TEXVC_SUCCESS ) { return $result; } + $this->writeCache(); } return $this->doHTMLRender(); }