Merge "Do an HTMLCacheUpdate of templatelinks on page creation"

This commit is contained in:
jenkins-bot 2017-04-18 23:23:28 +00:00 committed by Gerrit Code Review
commit c7dfa9dedc

View file

@ -3252,6 +3252,9 @@ class WikiPage implements Page, IDBAccessObject {
MediaWikiServices::getInstance()->getLinkCache()->invalidateTitle( $title );
// Invalidate caches of articles which include this page
DeferredUpdates::addUpdate( new HTMLCacheUpdate( $title, 'templatelinks' ) );
if ( $title->getNamespace() == NS_CATEGORY ) {
// Load the Category object, which will schedule a job to create
// the category table row if necessary. Checking a replica DB is ok