From: Aaron Schulz Date: Wed, 29 Jul 2015 01:06:48 +0000 (-0700) Subject: Defer the InfoAction purge in onArticleEdit() X-Git-Tag: 1.31.0-rc.0~10598 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=0452855044d2dbf4cc41381fe4075114bc4bf92e;p=lhc%2Fweb%2Fwiklou.git Defer the InfoAction purge in onArticleEdit() Change-Id: I73fba15c26c12bea1abad219611e660fb3901a86 --- diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index f7f25289b5..4d4cb035f3 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -3226,7 +3226,9 @@ class WikiPage implements Page, IDBAccessObject { // Clear file cache for this page only HTMLFileCache::clearFileCache( $title ); - InfoAction::invalidateCache( $title ); + DeferredUpdates::addCallableUpdate( function() use ( $title ) { + InfoAction::invalidateCache( $title ); + } ); } /**#@-*/