From 27f5abac5456c63812dfc35c001cb1a49fcd7a75 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 30 Nov 2015 16:55:43 -0800 Subject: [PATCH] Make HTMLCacheUpdate callers more consistent A few random callers were calling doUpdate() themselves instead of using DeferredUpdates Change-Id: If121e6afab9899dae92f0bf831b0b0c9967deeb5 --- includes/deferred/LinksUpdate.php | 3 +-- includes/specials/SpecialUndelete.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index a6290ed9da..c253e74403 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -948,8 +948,7 @@ class LinksUpdate extends SqlDataUpdate implements EnqueueableDataUpdate { $inv = array( $inv ); } foreach ( $inv as $table ) { - $update = new HTMLCacheUpdate( $this->mTitle, $table ); - $update->doUpdate(); + DeferredUpdates::addUpdate( new HTMLCacheUpdate( $this->mTitle, $table ) ); } } } diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 447c3ef1c6..664205aa20 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -636,8 +636,7 @@ class PageArchive { Hooks::run( 'ArticleUndelete', array( &$this->title, $created, $comment, $oldPageId ) ); if ( $this->title->getNamespace() == NS_FILE ) { - $update = new HTMLCacheUpdate( $this->title, 'imagelinks' ); - $update->doUpdate(); + DeferredUpdates::addUpdate( new HTMLCacheUpdate( $this->title, 'imagelinks' ) ); } return Status::newGood( $restored ); -- 2.20.1