dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b4f151c
)
Merge "Do an HTMLCacheUpdate of templatelinks on page creation"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Tue, 18 Apr 2017 23:23:28 +0000
(23:23 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 18 Apr 2017 23:23:28 +0000
(23:23 +0000)
includes/page/WikiPage.php
patch
|
blob
|
history
diff --git
a/includes/page/WikiPage.php
b/includes/page/WikiPage.php
index
82c32da
..
a687900
100644
(file)
--- a/
includes/page/WikiPage.php
+++ b/
includes/page/WikiPage.php
@@
-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