}
# Invalidate cache of this article and all pages using this article
- # as a template. Partly deferred.
- Article::onArticleEdit( $this->mTitle, false ); // leave templatelinks for editUpdates()
+ # as a template. Partly deferred. Leave templatelinks for editUpdates().
+ Article::onArticleEdit( $this->mTitle, 'skiptransclusions' );
# Update links tables, site stats, etc.
$this->editUpdates( $text, $summary, $isminor, $now, $revisionId, $changed );
} else {
/**
* Purge caches on page update etc
*/
- public static function onArticleEdit( $title, $touchTemplates = true ) {
+ public static function onArticleEdit( $title, $transclusions = 'transclusions' ) {
global $wgDeferredUpdateList, $wgUseFileCache;
// Invalidate caches of articles which include this page
- if( $touchTemplates )
+ if( $transclusions !== 'skiptransclusions' )
$wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, 'templatelinks' );
// Invalidate the caches of all pages which redirect here
} elseif( $changed ) {
wfDebug( __METHOD__ . ": running onArticleEdit\n" );
- Article::onArticleEdit( $this->title, false ); // leave templatelinks for editUpdates()
+ Article::onArticleEdit( $this->title, 'skiptransclusions' ); // leave templatelinks for editUpdates()
wfDebug( __METHOD__ . ": running edit updates\n" );
$article->editUpdates(