X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FParserCache.php;h=131b7b53281099b62602e81755f4463ade8194e5;hb=d39e1e24d1a97c0c063e5b675a898f8ff9faae90;hp=bc8e4a6993c04f7da79bcda6576e81d6b78d9432;hpb=4f1067e27efe648e6089ab0b28fac1b2c3481816;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index bc8e4a6993..131b7b5328 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -57,7 +57,7 @@ class ParserCache { } /** - * @param Article $article + * @param WikiPage $article * @param string $hash * @return mixed|string */ @@ -73,7 +73,7 @@ class ParserCache { } /** - * @param Article $article + * @param WikiPage $article * @return mixed|string */ protected function getOptionsKey( $article ) { @@ -91,7 +91,7 @@ class ParserCache { * English preferences. That's why we take into account *all* user * options. (r70809 CR) * - * @param Article $article + * @param WikiPage $article * @param ParserOptions $popts * @return string */ @@ -103,7 +103,7 @@ class ParserCache { /** * Retrieve the ParserOutput from ParserCache, even if it's outdated. - * @param Article $article + * @param WikiPage $article * @param ParserOptions $popts * @return ParserOutput|bool False on failure */ @@ -126,7 +126,7 @@ class ParserCache { * * @todo Document parameter $useOutdated * - * @param Article $article + * @param WikiPage $article * @param ParserOptions $popts * @param bool $useOutdated (default true) * @return bool|mixed|string @@ -176,7 +176,7 @@ class ParserCache { * Retrieve the ParserOutput from ParserCache. * false if not found or outdated. * - * @param Article $article + * @param WikiPage $article * @param ParserOptions $popts * @param bool $useOutdated (default false) * @@ -276,6 +276,8 @@ class ParserCache { // ...and its pointer $this->mMemc->set( $this->getOptionsKey( $page ), $optionsKey, $expire ); + + Hooks::run( 'ParserCacheSaveComplete', array( $this, $parserOutput, $page->getTitle(), $popts, $revId ) ); } else { wfDebug( "Parser output was marked as uncacheable and has not been saved.\n" ); }