Removed DeferredUpdates::addHTMLCacheUpdate()
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 21 Sep 2015 23:22:37 +0000 (16:22 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 22 Sep 2015 01:08:14 +0000 (18:08 -0700)
* That method does not belong in DeferredUpdates
  as this class should agnostic to the work done

Change-Id: I8098ffb82bf9c33ccb48a31aa9dbad514e8724a8

RELEASE-NOTES-1.26
includes/deferred/DeferredUpdates.php
includes/page/WikiPage.php

index bf07b20..19309a8 100644 (file)
@@ -189,6 +189,7 @@ changes to languages because of Phabricator reports.
   extension instead. New tokens types should not be added.
 * DatabaseBase::errorCount() was removed (unused).
 * $wgDeferredUpdateList was removed.
+* DeferredUpdates::addHTMLCacheUpdate() was removed.
 
 == Compatibility ==
 
index 713ce70..cd0266f 100644 (file)
@@ -78,17 +78,6 @@ class DeferredUpdates {
                }
        }
 
-       /**
-        * HTMLCacheUpdates are the most common deferred update people use. This
-        * is a shortcut method for that.
-        * @see HTMLCacheUpdate::__construct()
-        * @param Title $title
-        * @param string $table
-        */
-       public static function addHTMLCacheUpdate( $title, $table ) {
-               self::addUpdate( new HTMLCacheUpdate( $title, $table ) );
-       }
-
        /**
         * Add a callable update.  In a lot of cases, we just need a callback/closure,
         * defining a new DeferrableUpdate object is not necessary
index 30590cf..ddda130 100644 (file)
@@ -3219,10 +3219,10 @@ class WikiPage implements Page, IDBAccessObject {
         */
        public static function onArticleEdit( Title $title, Revision $revision = null ) {
                // Invalidate caches of articles which include this page
-               DeferredUpdates::addHTMLCacheUpdate( $title, 'templatelinks' );
+               DeferredUpdates::addUpdate( new HTMLCacheUpdate( $title, 'templatelinks' ) );
 
                // Invalidate the caches of all pages which redirect here
-               DeferredUpdates::addHTMLCacheUpdate( $title, 'redirect' );
+               DeferredUpdates::addUpdate( new HTMLCacheUpdate( $title, 'redirect' ) );
 
                // Purge squid for this page only
                $title->purgeSquid();