MediaWiki REL1_39
mcc.php File Reference

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
 

Detailed Description

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

Todo
document

Definition in file mcc.php.

Function Documentation

◆ mccGetHelp()

mccGetHelp ( $command)

Definition at line 83 of file mcc.php.

References $command.

Referenced by mccShowUsage().

◆ mccShowUsage()

mccShowUsage ( )

Show this command line tool usage.

Definition at line 62 of file mcc.php.

References mccGetHelp(), and print.

Variable Documentation

◆ $args

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

$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

◆ $debug

◆ $help

◆ $line

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().

◆ $mcc

if ($help) $mcc
Initial value:
'persistent' => true,
'debug' => $debug,
] )
memcached client class implemented using (p)fsockopen()
$debug
Definition mcc.php:31

Definition at line 39 of file mcc.php.

Referenced by McTest\execute().

◆ $optionsWithArgs

$optionsWithArgs = [ 'cache' ]

Definition at line 25 of file mcc.php.

◆ $optionsWithoutArgs

$optionsWithoutArgs
Initial value:
= [
'debug', 'help'
]

Definition at line 26 of file mcc.php.

◆ $quit

$quit = false

Definition at line 117 of file mcc.php.

◆ $showhelp

$showhelp = false

Definition at line 116 of file mcc.php.

◆ do

do
Initial value:
{
$bad = false

Definition at line 114 of file mcc.php.

◆ else

switch( $command) if ($bad) else
Initial value:
{
print "MediaWiki isn't configured for Memcached usage\n"
while(( $__line=Maintenance::readconsole()) !==false) print
Definition eval.php:69

Definition at line 54 of file mcc.php.