Index: branches/iwtransclusion/phase3v2/includes/Article.php |
— | — | @@ -3938,6 +3938,8 @@ |
3939 | 3939 | * @param $title Title object |
3940 | 3940 | */ |
3941 | 3941 | public static function onArticleCreate( $title ) { |
| 3942 | + global $wgDeferredUpdateList; |
| 3943 | + |
3942 | 3944 | # Update existence markers on article/talk tabs... |
3943 | 3945 | if ( $title->isTalkPage() ) { |
3944 | 3946 | $other = $title->getSubjectPage(); |
— | — | @@ -3951,6 +3953,9 @@ |
3952 | 3954 | $title->touchLinks(); |
3953 | 3955 | $title->purgeSquid(); |
3954 | 3956 | $title->deleteTitleProtection(); |
| 3957 | + |
| 3958 | + # Invalidate caches of distant articles which transclude this page |
| 3959 | + $wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, 'globaltemplatelinks' ); |
3955 | 3960 | } |
3956 | 3961 | |
3957 | 3962 | /** |
— | — | @@ -3959,6 +3964,8 @@ |
3960 | 3965 | * @param $title Title |
3961 | 3966 | */ |
3962 | 3967 | public static function onArticleDelete( $title ) { |
| 3968 | + global $wgMessageCache, $wgDeferredUpdateList; |
| 3969 | + |
3963 | 3970 | # Update existence markers on article/talk tabs... |
3964 | 3971 | if ( $title->isTalkPage() ) { |
3965 | 3972 | $other = $title->getSubjectPage(); |
— | — | @@ -3994,6 +4001,9 @@ |
3995 | 4002 | |
3996 | 4003 | # Image redirects |
3997 | 4004 | RepoGroup::singleton()->getLocalRepo()->invalidateImageRedirect( $title ); |
| 4005 | + |
| 4006 | + # Invalidate caches of distant articles which transclude this page |
| 4007 | + $wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, 'globaltemplatelinks' ); |
3998 | 4008 | } |
3999 | 4009 | |
4000 | 4010 | /** |
— | — | @@ -4010,7 +4020,6 @@ |
4011 | 4021 | |
4012 | 4022 | // Invalidate caches of distant articles which transclude this page |
4013 | 4023 | $wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, 'globaltemplatelinks' ); |
4014 | | - wfDoUpdates(); |
4015 | 4024 | |
4016 | 4025 | // Invalidate the caches of all pages which redirect here |
4017 | 4026 | $wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, 'redirect' ); |
Index: branches/iwtransclusion/phase3v2/includes/BacklinkCache.php |
— | — | @@ -174,10 +174,7 @@ |
175 | 175 | |
176 | 176 | /** |
177 | 177 | * Get the distant backtemplatelinks for the table globaltemplatelinks. Cached in process memory only. |
178 | | - * @param $table String |
179 | | - * @param $startId Integer or false |
180 | | - * @param $endId Integer or false |
181 | | - * @return TitleArray |
| 178 | + * @return ResultWrapper list of distant pages that use the local title |
182 | 179 | */ |
183 | 180 | public function getDistantTemplateLinks( ) { |
184 | 181 | global $wgGlobalDatabase, $wgLocalInterwiki; |
— | — | @@ -187,8 +184,7 @@ |
188 | 185 | array( 'globaltemplatelinks' ), |
189 | 186 | array( 'gtl_from_wiki', 'gtl_from_page' ), |
190 | 187 | array( 'gtl_to_prefix' => $wgLocalInterwiki, 'gtl_to_title' => $this->title->getDBkey( ) ), |
191 | | - __METHOD__, |
192 | | - 'GROUP BY gtl_from_wiki' |
| 188 | + __METHOD__ |
193 | 189 | ); |
194 | 190 | return $res; |
195 | 191 | } |
Property changes on: branches/iwtransclusion/phase3v2 |
___________________________________________________________________ |
Modified: svn:mergeinfo |
196 | 192 | Merged /branches/iwtransclusion/phase3:r70951 |