MediaWiki  1.23.2
docs/deferred.txt File Reference

Functions

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these updates (as a Java servelet could)
 

Variables

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view counts
 
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if so it s not worth the trouble Since there is a job queue in the jobs which is used to update link tables of transcluding pages after edits
 
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For example
 
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on it
 
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
 
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a save
 
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if so it s not worth the trouble Since there is a job queue in the jobs table
 
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if that
 

Function Documentation

◆ updates()

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these updates ( as a Java servelet  could)

Variable Documentation

◆ counts

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view counts

Definition at line 4 of file deferred.txt.

◆ edits

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if so it s not worth the trouble Since there is a job queue in the jobs which is used to update link tables of transcluding pages after edits

◆ example

An extension or a will often add custom code to the function with or without a global variable For example

Definition at line 4 of file deferred.txt.

Referenced by LanguageTrTest::provideDottedAndDotlessI(), and showUsage().

◆ it

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on it

Definition at line 11 of file deferred.txt.

◆ list

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list

Definition at line 11 of file deferred.txt.

Referenced by DBConnRef::__call(), ForeignDBViaLBRepo::__construct(), FileOp::__construct(), LinksUpdate::__construct(), IndexPager::__construct(), RevisionItemBase::__construct(), License::__construct(), RevDel_ArchiveItem::__construct(), RevDel_ArchivedRevisionItem::__construct(), WordLevelDiff::__construct(), MWMemcached::_connect_sock(), MWMemcached::_load_items(), RedisBagOStuff::add(), BackupDumperPageTest::addDBData(), TextPassDumperTest::addDBData(), ApiQueryLogEvents::addLogParams(), SwiftFileBackend::addMissingMetadata(), LocalFileMoveBatch::addOlds(), OutputPage::addParserOutputNoText(), RunJobs::assertMemoryOK(), FileBackendGroup::backendFromPath(), ExternalStoreDB::batchFetchFromURLs(), SpecialRevisionDelete::buildCheckBoxes(), ProtectionForm::buildForm(), SkinTemplate::buildPersonalUrls(), RevDel_RevisionItem::canView(), RevDel_FileItem::canView(), RevDel_LogItem::canView(), RevDel_RevisionItem::canViewContent(), RevDel_FileItem::canViewContent(), RedisBagOStuff::cas(), SqlBagOStuff::cas(), SpecialRecentChanges::categoryFilterForm(), CheckStorage::check(), ApiQueryTestBase::check(), Title::checkCascadingSourcesRestrictions(), MediaWiki::checkMaxLag(), ApiMain::checkMaxLag(), Title::checkReadPermissions(), UploadBase::checkSvgScriptCallback(), FileRepo::cleanupBatch(), SpecialEditWatchlist::cleanupWatchlist(), Sanitizer::cleanUrl(), Exif::collapseData(), lessc::colorArgs(), User::comparePasswords(), DiffEngine::compareSeq(), UpdateMediaWiki::compatChecks(), lessc::compileProp(), lessc::compileSelectors(), lessc::compileValue(), StreamFile::contentTypeFromPath(), SwiftFileBackend::createContainer(), SwiftFileBackendFileList::current(), Makefile::defaultWordsTable(), RedisBagOStuff::delete(), SqlBagOStuff::delete(), FileRepo::deleteBatch(), SwiftFileBackend::deleteContainer(), JobQueueAggregatorRedis::dencQueueName(), DiffEngine::diag(), FileBackendStore::directoryExists(), XMPReader::doAttribs(), FileBackendStore::doClean(), FSFileBackend::doCleanInternal(), SwiftFileBackend::doCopyInternal(), SwiftFileBackend::doCreateInternal(), LocalFileDeleteBatch::doDBDeletes(), LocalFileDeleteBatch::doDBInserts(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), FSFileBackend::doDirectoryExists(), Installer::doEnvironmentChecks(), SwiftFileBackend::doExecuteOpHandlesInternal(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), SwiftFileBackend::doGetFileContentsMulti(), SwiftFileBackend::doGetFileStatMulti(), SwiftFileBackend::doGetLocalCopyMulti(), SwiftFileBackend::doMoveInternal(), FileBackendStore::doPrepare(), FSFileBackend::doPrepareInternal(), FileBackendStore::doPublish(), FSFileBackend::doPublishInternal(), LinkSearchPage::doQuery(), MysqlUpdater::doSchemaRestructuring(), FileBackendStore::doSecure(), FSFileBackend::doSecureInternal(), SwiftFileBackend::doStoreInternal(), SwiftFileBackend::doStreamFile(), LinkHolderArray::doVariants(), ConfEditor::edit(), XMPReader::endElementModeLi(), XMPReader::endElementModeQDesc(), XMPReader::endElementModeSimple(), XMPReader::endElementNested(), Installer::envCheckShellLocale(), lessc::evaluate(), ApiEditPage::execute(), ApiUserrights::execute(), SpecialUnblock::execute(), NextJobDB::execute(), UpdateLogging::execute(), ApiBlock::execute(), DeleteOrphanedRevisions::execute(), UpdateSpecialPages::execute(), ApiQueryBlocks::execute(), ApiQueryLogEvents::execute(), CopyJobQueue::execute(), PurgeChangedPages::execute(), ConvertLinks::execute(), GenerateJqueryMsgData::execute(), SpecialEmailUser::execute(), MIMEsearchPage::execute(), ZipDirectoryReader::execute(), QueryPage::execute(), LocalFileDeleteBatch::execute(), JobQueueGroup::executeReadyPeriodicTasks(), Exif::exifGPStoNumber(), SpecialPageFactory::exists(), SpecialRevisionDelete::extractBitParams(), LogFormatter::extractParameters(), ExternalStoreDB::fetchFromURL(), ExternalStore::fetchFromURL(), HistoryAction::fetchRevisions(), UserrightsPage::fetchUser(), DatabaseMssql::fieldExists(), DatabaseMssql::fieldInfo(), DatabaseBase::fillPreparedArg(), findFiles(), Title::fixSpecialName(), SpecialNewpages::form(), RevisionItemBase::formatDate(), Linker::formatLinksInCommentCallback(), SpecialUndelete::formatRevisionRow(), SpecialNewpages::formatRow(), ContribsPager::formatRow(), RevisionItemBase::formatTime(), BlockListPager::formatValue(), File::generateThumbName(), RedisBagOStuff::get(), Interwiki::getAllPrefixesCached(), RevDel_RevisionItem::getApiData(), RevDel_FileItem::getApiData(), RevDel_LogItem::getApiData(), SwiftFileBackend::getAuthentication(), JobQueueGroup::getCachedConfigVar(), JobQueueFederated::getCacheKey(), JobQueueDB::getCacheKey(), Profiler::getCallTreeLine(), RevDel_FileItem::getComment(), RefreshImageMetadata::getConditions(), RedisConnectionPool::getConnection(), FileBackendStore::getContainerShard(), SwiftFileBackend::getContainerStat(), FileBackendStore::getContainerSuffixes(), SpecialVersion::getCreditsForExtension(), MultiHttpClient::getCurlHandle(), Title::getDefaultMessageText(), RevDel_RevisionItem::getDiffLink(), RevisionItem::getDiffLink(), RevDel_ArchiveItem::getDiffLink(), FileBackendStore::getDirectoryList(), FSFileBackend::getDirectoryListInternal(), HTMLFormField::getDiv(), SpecialUnblock::getFields(), SwiftFileBackend::getFileHttpUrl(), FileBackendStore::getFileList(), FSFileBackend::getFileListInternal(), RepoGroup::getFileProps(), SpecialChangePassword::getFormFields(), LocalFileDeleteBatch::getHashes(), HTMLForm::getHiddenFields(), RevDel_RevisionItem::getHTML(), RevDel_FileItem::getHTML(), RevDel_LogItem::getHTML(), ApiQueryImageInfo::getInfo(), Interwiki::getInterwikiCached(), OutputPage::getJSVars(), RevDel_FileItem::getLink(), RevDel_ArchivedFileItem::getLink(), HashRing::getLocations(), MessageCache::getMessageFromFallbackChain(), DeleteLogFormatter::getMessageParameters(), PNGMetadataExtractor::getMetadata(), ConvertLinks::getMicroTime(), RedisBagOStuff::getMulti(), SqlBagOStuff::getMulti(), SpecialPageFactory::getPage(), Skin::getPageClasses(), UsersPager::getPageHeader(), ContentHandler::getPageLanguage(), FSFile::getProps(), DeletedContribsPager::getQueryInfo(), LinkSearchPage::getQueryInfo(), JobQueueRedis::getQueueKey(), Block::getRangeEnd(), Block::getRangeStart(), HTMLFormField::getRaw(), XMPReader::getResults(), RevDel_RevisionItem::getRevisionLink(), RevisionItem::getRevisionLink(), RevDel_ArchiveItem::getRevisionLink(), JobQueue::getRootJobCacheKey(), LBFactoryMulti::getSectionForWiki(), ZipDirectoryReader::getStructSize(), SpecialBlock::getSuggestedDurations(), HTMLCheckMatrix::getTableRow(), HTMLFormField::getTableRow(), SpecialBlock::getTargetAndType(), SearchResult::getTextSnippet(), UIDGenerator::getTimestampedID128(), UIDGenerator::getTimestampedID88(), SpecialRandomInCategory::getTimestampOffset(), UploadBase::getTitle(), LogPage::getTitleLink(), RevDel_FileItem::getUserTools(), WikiMap::getWiki(), FileRepo::getZonePath(), WikiImporter::handlePage(), Title::hasSourceText(), FauxResponse::header(), CheckLanguageCLI::help(), HistoryPager::historyLine(), RedisBagOStuff::incr(), SqlBagOStuff::incr(), PoolCounterRedis::initAndPopPoolSlotList(), FileRepo::initDirectory(), Xml::inputLabel(), ExternalStore::insert(), DatabaseOracle::insertSelect(), DatabaseBase::insertSelect(), ChangesList::insertTags(), ExternalStore::insertWithFallback(), Title::isCascadeProtected(), RevDel_RevisionItem::isHideCurrentOp(), LocalFile::isMissing(), SwiftFileBackend::isPathUsableInternal(), FileBackendStore::isSingleShardPathInternal(), Title::isSpecial(), FixBug20757::isUnbrokenStub(), FormatMetadata::langItem(), Language::lcCallback(), lessc::lib_darken(), lessc::lib_desaturate(), lessc::lib_extract(), lessc::lib_fade(), lessc::lib_fadein(), lessc::lib_fadeout(), lessc::lib_lighten(), lessc::lib_mix(), lessc::lib_mod(), lessc::lib_pow(), lessc::lib_saturate(), lessc::lib_spin(), lessc::lib_unit(), SpecialSearch::load(), DifferenceEngine::loadRevisionIds(), LogEventsList::logLine(), FormatMetadata::makeFormattedData(), LinkHolderArray::makeHolder(), Linker::makeKnownLinkObj(), Licenses::makeLicenses(), Linker::makeLinkObj(), Linker::makeSelfLinkObj(), Makefile::manualWordsTable(), MagicWordArray::matchAndRemove(), MagicWordArray::matchStartAndRemove(), ApiQueryTestBase::merge(), McTest::microtime_float(), UIDGenerator::millisecondsSinceEpochBinary(), UIDGenerator::millitime(), Block::newFromTarget(), Block::newLoad(), LBFactoryMulti::newMainLB(), Linker::normaliseSpecialPage(), FileBackend::normalizeStoragePath(), SwiftFileBackend::objectListing(), LoadBalancer::openForeignConnection(), TextPassDumper::openSpawn(), SpecialSpecialpages::outputPageList(), FileBackend::parentStoragePath(), DeleteLogFormatter::parseBitField(), CookieJar::parseCookieResponseHeader(), MagicWordArray::parseMatch(), SearchSqlite::parseQuery(), SearchMySQL::parseQuery(), BacklinkCache::partition(), BacklinkJobUtils::partitionBacklinkJob(), MediaWiki::performRequest(), User::pingLimiter(), FileBackendStore::preloadCache(), SpecialChangeEmail::pretty(), FileBackendStore::primeContainerCache(), FileBackendStore::primeFileCache(), BackupDumper::processArgs(), SpecialBlock::processForm(), SquidPurgeClient::processStatusLine(), SpecialUnblock::processUnblock(), ProfilerSimpleTrace::profileOut(), ProfilerMwprof::profileOut(), ProfilerSimple::profileOut(), FileRepo::publishBatch(), FileRepo::quickImportBatch(), ImageListPager::reallyDoQuery(), IndexPager::reallyDoQuery(), RebuildRecentchanges::rebuildRecentChangesTablePass2(), RebuildRecentchanges::rebuildRecentChangesTablePass3(), RebuildRecentchanges::rebuildRecentChangesTablePass4(), OldChangesList::recentChangesLine(), JobQueueRedis::recyclePruneAndUndelayJobs(), lessc::reduce(), PoolCounterRedis::release(), Sanitizer::removeHTMLtags(), LocalFileDeleteBatch::removeNonexistentFiles(), Makefile::removeRules(), MessageCache::replace(), LinkHolderArray::replaceTextCallback(), FileBackendMultiWrite::replicateContainerDirChanges(), MemoryFileBackend::resolveHashKey(), FileBackendStore::resolveStoragePath(), FileBackendStore::resolveStoragePathReal(), FSFileBackend::resolveToFSPath(), FileRepo::resolveVirtualUrl(), RefreshLinksJob2::run(), RefreshLinksJob::run(), ApiQueryAllImages::run(), SquidPurgeClientPool::run(), DatabaseBase::runOnTransactionIdleCallbacks(), DatabaseBase::runOnTransactionPreCommitCallbacks(), DatabaseBase::selectSQLText(), RedisBagOStuff::set(), SqlBagOStuff::set(), RevDel_ArchiveItem::setBits(), RevDel_FileItem::setBits(), SwiftFileBackend::setContainerAccess(), SpecialBlock::setParameter(), LocalFile::setProps(), MWHttpRequest::setStatus(), Block::setTarget(), ProtectionForm::show(), SpecialAllpages::showChunk(), Article::showDiffPage(), SpecialBlockList::showList(), SpecialBookSources::showList(), SpecialPrefixindex::showPrefixChunk(), showUsage(), UserOptions::showUsageAndExit(), MWMemcached::sock_to_host(), CoreParserFunctions::special(), UserrightsPage::splitGroups(), XMPReader::startElement(), XMPReader::startElementModeLi(), XMPReader::startElementModeSimple(), UploadStash::stashFile(), FileRepo::storeBatch(), DatabaseMssql::tableExists(), DatabaseBase::tableName(), IPTest::testCombineHostAndPort(), ApiEditPageTest::testEditAppend(), ApiEditPageTest::testEditConflict_bug41990(), ApiEditPageTest::testEditConflict_redirect(), ApiEditPageTest::testEditNewSection(), ApiEditPageTest::testEditSection(), DifferenceEngineTest::testLoadRevisionData(), ApiUploadTest::testLogin(), DifferenceEngineTest::testMapDiffPrevNext(), RefreshLinksPartitionTest::testRefreshLinks(), LanguageTest::testTranslateBlockExpiry(), LinksUpdateTest::testUpdate_categorylinks(), LinksUpdateTest::testUpdate_externallinks(), LinksUpdateTest::testUpdate_imagelinks(), LinksUpdateTest::testUpdate_iwlinks(), LinksUpdateTest::testUpdate_langlinks(), LinksUpdateTest::testUpdate_page_props(), LinksUpdateTest::testUpdate_pagelinks(), LinksUpdateTest::testUpdate_templatelinks(), ApiUploadTest::testUpload(), ApiUploadTest::testUploadChunks(), ApiUploadTest::testUploadSameContent(), ApiUploadTest::testUploadSameFileName(), ApiUploadTest::testUploadStash(), IPTC::timeHelper(), TraditionalImageGallery::toHTML(), Profiler::transactionWritingOut(), BitmapHandler::transformGd(), BitmapHandler::transformImageMagick(), BitmapHandler::transformImageMagickExt(), MediaWiki_I18N::translate(), LanguageFi::translateBlockExpiry(), Language::truncateHtml(), lessc::tryImport(), Language::ucCallback(), Language::ucwordsCallbackWiki(), ZipDirectoryReader::unpack(), OldLocalFile::upgradeRow(), LocalFile::upgradeRow(), Exif::validate(), SpecialBlock::validateTarget(), RecompressTracked::waitForSlaves(), wfExtractThumbParams(), wfExtractThumbRequestInfo(), and wfRequestExtension().

◆ save

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a save

Definition at line 4 of file deferred.txt.

Referenced by PoolCounterRedis::release(), and UserOptions::showUsageAndExit().

◆ table

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if so it s not worth the trouble Since there is a job queue in the jobs table

◆ that

deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if that