of LocalSettings.php, in LocalSettings.php itself. Instead, this is done
automatically if $wgInvalidateCacheOnLocalSettingsChange is true (which is
the default).
+* (bug 26253) $wgPostCommitUpdateList has been removed
=== New features in 1.17 ===
* (bug 10183) Users can now add personal styles and scripts to all skins via
at the first query, and commits it before the output is sent. Locks will
be held from the time when the query is done until the commit. So you
can reduce lock time by doing as much processing as possible before you
-do your write queries. Update operations which do not require database
-access can be delayed until after the commit by adding an object to
-$wgPostCommitUpdateList.
+do your write queries.
Often this approach is not good enough, and it becomes necessary to
enclose small groups of queries in their own transaction. Use the
* TODO: This could be in Wiki.php if that class made any sense at all
*/
function wfDoUpdates() {
- global $wgPostCommitUpdateList, $wgDeferredUpdateList;
+ global $wgDeferredUpdateList;
foreach ( $wgDeferredUpdateList as $update ) {
$update->doUpdate();
}
- foreach ( $wgPostCommitUpdateList as $update ) {
- $update->doUpdate();
- }
$wgDeferredUpdateList = array();
- $wgPostCommitUpdateList = array();
}
/**
wfProfileIn( $fname.'-misc2' );
$wgDeferredUpdateList = array();
-$wgPostCommitUpdateList = array();
if ( $wgAjaxUploadDestCheck ) $wgAjaxExportList[] = 'SpecialUpload::ajaxGetExistsWarning';
$mediaWiki->performRequestForTitle( $wgTitle, $wgArticle, $wgOut, $wgUser, $wgRequest );
$mediaWiki->finalCleanup( $wgDeferredUpdateList, $wgOut );
-# Not sure when $wgPostCommitUpdateList gets set, so I keep this separate from finalCleanup
-$mediaWiki->doUpdates( $wgPostCommitUpdateList );
-
$mediaWiki->restInPeace();