Index: branches/iwtransclusion/phase3/includes/Article.php |
— | — | @@ -4089,6 +4089,8 @@ |
4090 | 4090 | * @param $title a title object |
4091 | 4091 | */ |
4092 | 4092 | public static function onArticleCreate( $title ) { |
| 4093 | + global $wgDeferredUpdateList; |
| 4094 | + |
4093 | 4095 | # Update existence markers on article/talk tabs... |
4094 | 4096 | if ( $title->isTalkPage() ) { |
4095 | 4097 | $other = $title->getSubjectPage(); |
— | — | @@ -4102,13 +4104,16 @@ |
4103 | 4105 | $title->touchLinks(); |
4104 | 4106 | $title->purgeSquid(); |
4105 | 4107 | $title->deleteTitleProtection(); |
| 4108 | + |
| 4109 | + # Invalidate caches of distant articles which transclude this page |
| 4110 | + $wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, 'globaltemplatelinks' ); |
4106 | 4111 | } |
4107 | 4112 | |
4108 | 4113 | /** |
4109 | 4114 | * Clears caches when article is deleted |
4110 | 4115 | */ |
4111 | 4116 | public static function onArticleDelete( $title ) { |
4112 | | - global $wgMessageCache; |
| 4117 | + global $wgMessageCache, $wgDeferredUpdateList; |
4113 | 4118 | |
4114 | 4119 | # Update existence markers on article/talk tabs... |
4115 | 4120 | if ( $title->isTalkPage() ) { |
— | — | @@ -4145,6 +4150,9 @@ |
4146 | 4151 | |
4147 | 4152 | # Image redirects |
4148 | 4153 | RepoGroup::singleton()->getLocalRepo()->invalidateImageRedirect( $title ); |
| 4154 | + |
| 4155 | + # Invalidate caches of distant articles which transclude this page |
| 4156 | + $wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, 'globaltemplatelinks' ); |
4149 | 4157 | } |
4150 | 4158 | |
4151 | 4159 | /** |