Index: trunk/phase3/includes/Article.php |
— | — | @@ -1593,8 +1593,8 @@ |
1594 | 1594 | } |
1595 | 1595 | |
1596 | 1596 | # Invalidate cache of this article and all pages using this article |
1597 | | - # as a template. Partly deferred. |
1598 | | - Article::onArticleEdit( $this->mTitle, false ); // leave templatelinks for editUpdates() |
| 1597 | + # as a template. Partly deferred. Leave templatelinks for editUpdates(). |
| 1598 | + Article::onArticleEdit( $this->mTitle, 'skiptransclusions' ); |
1599 | 1599 | # Update links tables, site stats, etc. |
1600 | 1600 | $this->editUpdates( $text, $summary, $isminor, $now, $revisionId, $changed ); |
1601 | 1601 | } else { |
— | — | @@ -3239,11 +3239,11 @@ |
3240 | 3240 | /** |
3241 | 3241 | * Purge caches on page update etc |
3242 | 3242 | */ |
3243 | | - public static function onArticleEdit( $title, $touchTemplates = true ) { |
| 3243 | + public static function onArticleEdit( $title, $transclusions = 'transclusions' ) { |
3244 | 3244 | global $wgDeferredUpdateList, $wgUseFileCache; |
3245 | 3245 | |
3246 | 3246 | // Invalidate caches of articles which include this page |
3247 | | - if( $touchTemplates ) |
| 3247 | + if( $transclusions !== 'skiptransclusions' ) |
3248 | 3248 | $wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, 'templatelinks' ); |
3249 | 3249 | |
3250 | 3250 | // Invalidate the caches of all pages which redirect here |
Index: trunk/phase3/includes/Import.php |
— | — | @@ -219,7 +219,7 @@ |
220 | 220 | |
221 | 221 | } elseif( $changed ) { |
222 | 222 | wfDebug( __METHOD__ . ": running onArticleEdit\n" ); |
223 | | - Article::onArticleEdit( $this->title, false ); // leave templatelinks for editUpdates() |
| 223 | + Article::onArticleEdit( $this->title, 'skiptransclusions' ); // leave templatelinks for editUpdates() |
224 | 224 | |
225 | 225 | wfDebug( __METHOD__ . ": running edit updates\n" ); |
226 | 226 | $article->editUpdates( |