Defer the InfoAction purge in onArticleEdit()

Change-Id: I73fba15c26c12bea1abad219611e660fb3901a86
This commit is contained in:
Aaron Schulz 2015-07-28 18:06:48 -07:00
parent 8f6aeac5d7
commit 0452855044

View file

@ -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 );
} );
}
/**#@-*/