MediaWiki REL1_39
|
memcached diagnostic tool More...
Go to the source code of this file.
Functions | |
mccGetHelp ( $command) | |
mccShowUsage () | |
Show this command line tool usage. | |
Variables | |
if( $line===false) | $args = explode( ' ', $line ) |
$cache = $options['cache'] ?? null | |
$command = array_shift( $args ) | |
$debug = isset( $options['debug'] ) | |
$help = isset( $options['help'] ) | |
$line = Maintenance::readconsole() | |
if( $help) | $mcc |
$optionsWithArgs = [ 'cache' ] | |
$optionsWithoutArgs | |
$quit = false | |
$showhelp = false | |
do | |
if( $cache) elseif($wgMainCacheType===CACHE_MEMCACHED) elseif(isset( $wgObjectCaches[$wgMainCacheType]['servers'])) | else |
memcached diagnostic tool
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file mcc.php.
mccGetHelp | ( | $command | ) |
mccShowUsage | ( | ) |
Show this command line tool usage.
Definition at line 62 of file mcc.php.
References mccGetHelp(), and print.
if ($line===false) $args = explode( ' ', $line ) |
Definition at line 124 of file mcc.php.
Referenced by StubObject\__call(), MemcachedClient\__construct(), DumpBackup\__construct(), BackupDumper\__construct(), TextPassDumper\__construct(), MediaTransformError\__construct(), MediaWiki\User\UserIdentityValue\__construct(), PPTemplateFrame_Hash\__toString(), StubObject\_call(), LogPage\actionText(), HTMLForm\addButton(), OutputPage\addWikiMsg(), OutputPage\addWikiMsgArray(), ArrayUtils\arrayDiffAssocRecursive(), Parser\braceSubstitution(), MemoizedCallable\call(), Xhprof\callAny(), Parser\callParserFunction(), SearchEngineFactory\create(), LayeredParameterizedPassword\crypt(), Wikimedia\Rdbms\Database\deadlockLoop(), Wikimedia\Rdbms\DatabaseSqlite\deadlockLoop(), Xhprof\enable(), Xml\encodeJsCall(), ApiQueryAllMessages\execute(), CommandLineInc\execute(), RecompressTracked\executeChild(), MultiWriteBagOStuff\get(), Http\get(), WebInstaller\getHelpBox(), PPFrame_Hash\implode(), PPFrame_Hash\implodeWithFlags(), Sanitizer\internalRemoveHtmlTags(), MemoizedCallable\invokeArgs(), Maintenance\loadParamsAndArgs(), MediaWiki\Maintenance\MaintenanceParameters\loadWithArgv(), PPFrame_Hash\newChild(), Preprocessor_Hash\newCustomFrame(), RecompressTracked\newFromCommandLine(), ObjectCache\newFromParams(), FileBackend\newStatus(), MediaWiki\Site\MediaWikiPageNameNormalizer\normalizePageName(), MediaWiki\HookContainer\HookRunner\onAutopromoteCondition(), ComposerPhpunitXmlCoverageEdit\onEvent(), Message\params(), LayeredParameterizedPassword\partialCrypt(), TemplateParser\processTemplate(), SpecialUpload\processVerificationError(), JobQueueRedis\pushBlobs(), Sanitizer\removeHTMLtags(), ImportReporter\reportLogItem(), Hooks\run(), Hooks\runWithoutAbort(), MWHttpRequest\setData(), MediaWiki\Maintenance\MaintenanceParameters\setOptionsAndArgs(), SpecialUpload\showUploadWarning(), LocalRepo\skipWriteOperationIfSha1(), CoreParserFunctions\tagObj(), PPFrame_Hash\virtualBracketedImplode(), PPFrame_Hash\virtualImplode(), wfEscapeShellArg(), wfForbidden(), wfMergeErrorArrays(), wfMsgReplaceArgs(), and OutputPage\wrapWikiMsg().
$cache = $options['cache'] ?? null |
Definition at line 33 of file mcc.php.
Referenced by CryptHKDF\__construct(), TemplateParser\__construct(), Wikimedia\WRStats\BagOStuffStatsStore\__construct(), MediaWiki\Settings\Cache\CachedSource\__construct(), MediaWiki\Storage\PageEditStash\__construct(), MediaWiki\BadFileLookup\__construct(), MediaWiki\Revision\RevisionStoreFactory\__construct(), MediaWiki\Storage\BlobStoreFactory\__construct(), MediaWiki\Storage\NameTableStoreFactory\__construct(), MediaWiki\Storage\SqlBlobStore\__construct(), MediaWiki\Storage\NameTableStore\__construct(), MediaWiki\Revision\RevisionStore\__construct(), MediaWiki\Rest\Handler\PageHistoryCountHandler\__construct(), WatchedItemStore\__construct(), CachingSiteStore\__construct(), MediaWiki\Settings\SettingsBuilder\__construct(), ParserCache\__construct(), MediaWiki\Parser\RevisionOutputCache\__construct(), PoolWorkArticleViewOld\__construct(), LinkCache\__construct(), MapCacheLRU\__serialize(), LinkBatch\addResultToCache(), MediaWiki\Auth\AuthManager\autoCreateUser(), FileCacheBase\cacheMissKey(), MediaWiki\ResourceLoader\MessageBlobStore\clearGlobalCacheEntry(), User\clearSharedCache(), MediaWiki\ResourceLoader\FileModule\compileLessString(), MediaWiki\Auth\AuthManager\continueAccountCreation(), LanguageConverter\convertNamespace(), MultiWriteBagOStuff\deleteObjectsExpiringBefore(), UsersPager\doBatchLookups(), ClearInterwikiCache\execute(), LinkBatch\executeInto(), FormatMetadata\fetchExtendedMetadata(), Message\fetchMessage(), MessageCache\getAllMessageKeys(), MediaWiki\ResourceLoader\MessageBlobStore\getBlobs(), User\getCacheKey(), InfoAction\getCacheKey(), ParserCache\getCacheStorage(), WikiMap\getCanonicalServerInfoForAllWikis(), ChangeTags\getChangeTagListSummary(), WikiPage\getContentModel(), SpecialVersion\getCreditsForExtension(), File\getDescriptionText(), ForeignDBFile\getDescriptionText(), DifferenceEngine\getDiffBody(), DjVuHandler\getDimensionInfo(), WANCacheReapUpdate\getEventAffectedKeys(), ApiHelp\getHelp(), ExtensionRegistry\getLazyLoadedAttribute(), ObjectCache\getLocalServerInstance(), TransformationalImageHandler\getMagickVersion(), FileCacheBase\getMissesRecent(), WikiPage\getMutableCacheKeys(), User\getMutableCacheKeys(), LinkCache\getMutableCacheKeys(), MediaWiki\Parser\ParserCacheFactory\getParserCache(), MediaWiki\Parser\ParserCacheFactory\getRevisionOutputCache(), Wikimedia\Rdbms\DatabaseMysqlBase\getServerVersion(), User\getTouched(), DependencyWrapper\getValueFromCache(), FileCacheBase\incrMissesRecent(), Parser\interwikiTransclude(), InfoAction\invalidateCache(), MediaWiki\ResourceLoader\WikiModule\invalidateModuleCache(), LinkCache\invalidateTitle(), MediaWiki\Block\DatabaseBlock\isExemptedFromAutoblocks(), SiteStats\jobs(), ChangeTags\listExplicitlyDefinedTags(), ChangeTags\listSoftwareActivatedTags(), ChangeTags\listSoftwareDefinedTags(), User\loadFromCache(), ExtensionRegistry\loadFromQueue(), LanguageConverter\loadTables(), ObjectCache\newAnything(), ResourceFileCache\newFromContext(), SiteStats\numberingroup(), MediaWiki\HookContainer\HookRunner\onLocalisationCacheRecache(), MediaWiki\HookContainer\HookRunner\onLocalisationCacheRecacheFallback(), MediaWiki\HookContainer\HookRunner\onUsersPagerDoBatchLookups(), HistoryAction\onView(), CoreParserFunctions\pagesincategory(), SiteStats\pagesInNs(), MediaWiki\ResourceLoader\WikiModule\preloadTitleInfo(), User\purge(), Article\purgePatrolFooterCache(), ChangeTags\purgeTagCacheAll(), JobQueueGroup\push(), JobQueueGroup\queuesHaveJobs(), MediaWiki\ResourceLoader\MessageBlobStore\recacheMessageBlob(), MessageCache\refreshAndReplaceInternal(), MediaWiki\run(), MediaWiki\ResourceLoader\ResourceLoader\saveModuleDependenciesInternal(), ExtensionRegistry\saveToCache(), WANObjectCache\set(), MultiWriteBagOStuff\setMockTime(), Article\showPatrolFooter(), DependencyWrapper\storeToCache(), ChangeTags\tagUsageStatistics(), MapCacheLRU\toArray(), User\touch(), WikiPage\triggerOpportunisticLinksUpdate(), Article\tryFileCache(), MediaWiki\ResourceLoader\Module\validateScriptFile(), wfGenerateThumbnail(), wfIsDebugRawPage(), and MediaWiki\Session\PHPSessionHandler\write().
$command = array_shift( $args ) |
Definition at line 125 of file mcc.php.
Referenced by Job\__construct(), WatchlistExpiryJob\__construct(), MemcachedClient\_set(), PostgresUpdater\changeFkeyDeferrable(), UploadBase\detectVirus(), MWDocGen\execute(), Job\factory(), JobQueue\factoryJob(), ExecutableFinder\findExecutable(), Job\getType(), mccGetHelp(), MediaWiki\ResourceLoader\Image\rasterize(), JpegHandler\rotate(), SevenZipStream\stream_open(), JpegHandler\swapICCProfile(), and Job\toString().
$debug = isset( $options['debug'] ) |
Definition at line 31 of file mcc.php.
Referenced by MWDebug\getDebugInfo(), MediaWiki\ResourceLoader\ResourceLoader\makeModuleResponse(), WikiImporter\setDebug(), MediaWiki\ResourceLoader\DerivativeContext\setDebug(), JobRunner\setDebugHandler(), and wfThumbError().
$help = isset( $options['help'] ) |
Definition at line 32 of file mcc.php.
Referenced by HTMLFormField\getOOUI(), UploadForm\getSourceSection(), ApiMain\modifyHelp(), MediaWiki\Api\ApiHookRunner\onAPIHelpModifyOutput(), and Maintenance\showHelp().
$line = Maintenance::readconsole() |
Definition at line 119 of file mcc.php.
Referenced by MemcachedClient\_incrdecr(), MemcachedClient\_set(), TableDiffFormatter\added(), TableDiffFormatter\addedLine(), Skin\addToSidebarPlain(), DatabaseUpdater\appendLine(), SpecialRevisionDelete\buildCheckBoxes(), Licenses\buildLine(), OrderedStreamingForkController\consume(), TableDiffFormatter\context(), TableDiffFormatter\contextLine(), DatabaseUpdater\copyFile(), TableDiffFormatter\deleted(), TableDiffFormatter\deletedLine(), Wikimedia\StaticArrayWriter\encodeValue(), MediaWiki\Rest\EntryPoint\execute(), BlockUsers\execute(), DeleteBatch\execute(), FetchText\execute(), FindClasses\execute(), GrepPages\execute(), GenerateNormalizerDataAr\execute(), MoveBatch\execute(), MwSql\execute(), RecompressTracked\executeChild(), ArrayDiffFormatter\format(), MWDebug\getDebugHTML(), UploadBase\getFilenamePrefixBlacklist(), MWDebug\getHTMLDebugLog(), FormatMetadata\getVisibleFields(), MWExceptionHandler\handleError(), MWExceptionHandler\handleFatalError(), SearchHighlighter\highlightSimple(), SearchHighlighter\highlightText(), MediaWiki\Block\DatabaseBlock\isExemptedFromAutoblocks(), DiffFormatter\lines(), UnifiedDiffFormatter\lines(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\loadCustomCaptions(), MediaWiki\Search\SearchWidgets\SimpleSearchResultSetWidget\loadCustomCaptions(), Licenses\makeLines(), FormattedRCFeed\notify(), MediaWiki\HookContainer\HookRunner\onImagePageFileHistoryLine(), QueryPage\outputResults(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), Parser\renderImageGallery(), RedisPubSubFeedEngine\send(), UDPRCFeedEngine\send(), Wikimedia\Rdbms\Database\sourceStream(), MwSql\sqlDoQuery(), OrderedStreamingForkController\updateAvailableSockets(), wfBacktrace(), and TableDiffFormatter\wrapLine().
if ($help) $mcc |
Definition at line 39 of file mcc.php.
Referenced by McTest\execute().