MediaWiki REL1_33
|
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 cache, connection, is, mccGetHelp(), memcached, on, print, and that.
Definition at line 33 of file mcc.php.
Referenced by CryptHKDF\__construct(), ParserCache\__construct(), LinkCache\__construct(), Pingback\acquireLock(), LinkCache\addLinkObj(), LinkBatch\addResultToCache(), ProcessCacheLRUTest\assertCacheEmpty(), MediaWiki\Auth\AuthManager\autoCreateUser(), Preprocessor\cacheGetTree(), FileCacheBase\cacheMissKey(), Preprocessor\cacheSetTree(), BagOStuff\changeTTL(), FeedUtils\checkPurge(), MessageBlobStore\clear(), User\clearSharedCache(), ResourceLoaderFileModule\compileLessFile(), MediaWiki\Auth\AuthManager\continueAccountCreation(), LanguageConverter\convertNamespace(), MultiWriteBagOStuff\deleteObjectsExpiringBefore(), UsersPager\doBatchLookups(), WikiPage\doDeleteArticleBatched(), ApiStashEditTest\doStashOld(), MultiWriteBagOStuff\doWrite(), ChangesFeed\execute(), ApiStashEdit\execute(), McTest\execute(), LinkBatch\executeInto(), FormatMetadata\fetchExtendedMetadata(), Message\fetchMessage(), ProcessCacheLRUTest\fillCache(), ResourceLoader\filter(), MultiWriteBagOStuff\get(), MessageCache\getAllMessageKeys(), MessageBlobStore\getBlobs(), RevisionTest\getBlobStore(), JobQueueGroup\getCachedConfigVar(), Skin\getCachedNotice(), User\getCacheKey(), InfoAction\getCacheKey(), WikiMap\getCanonicalServerInfoForAllWikis(), ChangesListSpecialPage\getChangeTagList(), WikiPage\getContentModel(), SpecialVersion\getCreditsForExtension(), File\getDescriptionText(), ForeignDBFile\getDescriptionText(), DifferenceEngine\getDiffBody(), DjVuHandler\getDimensionInfo(), WANCacheReapUpdate\getEventAffectedKeys(), IcuCollation\getFirstLetterData(), UsersPager\getGroupMemberships(), ApiHelp\getHelp(), DateFormatter\getInstance(), ObjectCache\getLocalServerInstance(), TransformationalImageHandler\getMagickVersion(), Wikimedia\Rdbms\DatabaseMysqlBase\getMasterServerInfo(), FileCacheBase\getMissesRecent(), WikiPage\getMutableCacheKeys(), LinkCache\getMutableCacheKeys(), ContentHandler\getParserOutputForIndexing(), RevisionTest\getRevisionStore(), UIDGenerator\getSequentialPerNodeIDs(), UploadBase\getSessionStatus(), ApiStashEditTest\getStashedText(), ApiStashEdit\getStashValue(), User\getTouched(), DependencyWrapper\getValueFromCache(), FileCacheBase\incrMissesRecent(), Parser\interwikiTransclude(), InfoAction\invalidateCache(), ResourceLoaderWikiModule\invalidateModuleCache(), LinkCache\invalidateTitle(), MessageCache\isCacheExpired(), User\isEveryoneAllowed(), Language\isValidCode(), Block\isWhitelistedFromAutoblocks(), SiteStats\jobs(), ChangeTags\listExplicitlyDefinedTags(), ChangeTags\listSoftwareActivatedTags(), ChangeTags\listSoftwareDefinedTags(), MessageCache\load(), ChangesFeed\loadFromCache(), LocalFile\loadFromCache(), User\loadFromCache(), MessageCache\loadFromDB(), MessageCache\loadFromDBWithLock(), AjaxResponse\loadFromMemcached(), ExtensionRegistry\loadFromQueue(), Title\loadRestrictions(), LanguageConverter\loadTables(), MediaWiki\main(), Wikimedia\Rdbms\LoadBalancer\masterRunningReadOnly(), ObjectCache\newAnything(), ResourceFileCache\newFromContext(), WatchedItemStoreUnitTest\newWatchedItemStore(), SiteStats\numberingroup(), HistoryAction\onView(), InfoAction\pageCounts(), CoreParserFunctions\pagesincategory(), SiteStats\pagesInNs(), User\pingLimiter(), ResourceLoaderWikiModule\preloadTitleInfo(), ApiStashEdit\pruneExcessStashedEntries(), User\purge(), WikiPage\purgeInterwikiCheckKey(), Article\purgePatrolFooterCache(), ChangeTags\purgeTagCacheAll(), JobQueueGroup\push(), JobQueueGroup\queuesHaveJobs(), MessageBlobStore\recacheMessageBlob(), MessageCache\refreshAndReplaceInternal(), ManageJobs\repushAbandoned(), MediaWiki\run(), ResourceLoaderModule\saveFileDependencies(), ChangesFeed\saveToCache(), MessageCache\saveToCaches(), MessageCache\saveToLocalCache(), WANObjectCache\set(), MultiWriteBagOStuff\setDebug(), UploadBase\setSessionStatus(), MessageCache\setValidationHash(), Article\showMissingArticle(), Article\showPatrolFooter(), AjaxResponse\storeInMemcached(), ApiStashEdit\storeStashValue(), DependencyWrapper\storeToCache(), MapCacheLRUTest\testArrayConversion(), MediaWiki\Auth\AuthManagerTest\testAutoAccountCreation(), ProcessCacheLRUTest\testBumpExistingKeyToTop(), CachedBagOStuffTest\testCacheBackendMisses(), MediaWiki\Auth\ThrottlerTest\testClear(), HashBagOStuffTest\testClear(), HashBagOStuffTest\testConstructBadNeg(), HashBagOStuffTest\testConstructBadType(), HashBagOStuffTest\testConstructBadZero(), EtcdConfigTest\testConstructCacheObj(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest\testConstructor(), MediaWiki\Auth\ThrottlerTest\testConstructor(), MediaWiki\Auth\AuthManagerTest\testContinueAccountCreation(), HashBagOStuffTest\testDelete(), PoolWorkArticleViewTest\testDoWorkParserCache(), HashBagOStuffTest\testEvictionAdd(), HashBagOStuffTest\testEvictionGet(), HashBagOStuffTest\testEvictionSet(), MediaWiki\Auth\ThrottlerTest\testExpiration(), CachedBagOStuffTest\testExpire(), HashBagOStuffTest\testExpire(), MapCacheLRUTest\testExpiry(), MapCacheLRUTest\testFields(), ProcessCacheLRUTest\testFillingCache(), CachedBagOStuffTest\testGetFromBackend(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase\testGetKnownCurrentRevision_revDelete(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase\testGetKnownCurrentRevision_userNameChange(), MediaWiki\Tests\Revision\RevisionStoreFactoryTest\testGetRevisionStore(), RevisionTest\testGetRevisionText_external_oldId(), MediaWiki\Auth\ThrottlerTest\testIncrease(), MapCacheLRUTest\testInvalidKeys(), SiteStatsTest\testJobsCountGetCached(), EtcdConfigTest\testLoadCacheExpiredLockFetchFails(), EtcdConfigTest\testLoadCacheExpiredLockFetchSucceeded(), EtcdConfigTest\testLoadCacheExpiredNoLock(), EtcdConfigTest\testLoadCacheHit(), EtcdConfigTest\testLoadCacheMiss(), EtcdConfigTest\testLoadCacheMissBackendError(), EtcdConfigTest\testLoadCacheMissWithoutLock(), MessageCacheTest\testLoadFromDB_fetchLatestRevision(), EtcdConfigTest\testLoadProcessCacheHit(), MediaWiki\Auth\ThrottlerTest\testLog(), MapCacheLRUTest\testLRU(), CachedBagOStuffTest\testMakeGlobalKey(), CachedBagOStuffTest\testMakeKey(), MediaWiki\Tests\Revision\RevisionStoreTest\testMigrationConstruction(), MediaWiki\Auth\ThrottlerTest\testNamespacing(), RevisionDbTestBase\testNewKnownCurrent(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase\testNewMutableRevisionFromArray_legacyEncoding(), MediaWiki\Tests\Revision\RevisionStoreTest\testNewRevisionFromRow_legacyEncoding_applied(), MediaWiki\Tests\Revision\RevisionStoreTest\testNewRevisionFromRow_legacyEncoding_ignored(), LocalisationCacheTest\testPuralRulesFallback(), LocalisationCacheTest\testRecacheFallbacksWithHooks(), ProcessCacheLRUTest\testRecentlyAccessedKeyStickIn(), ProcessCacheLRUTest\testReplaceExistingKeyInAFullCacheShouldBumpToTop(), ProcessCacheLRUTest\testReplaceExistingKeyShouldBumpEntryToTop(), MapCacheLRUTest\testSerialize(), CachedBagOStuffTest\testSetAndDelete(), CachedBagOStuffTest\testSetDebug(), ApiStashEditTest\testSignatureTtl(), ArticleViewTest\testViewCached(), GlobalTest\testWfForeignMemcKey(), GlobalTest\testWfGlobalCacheKey(), GlobalTest\testWfMemcKey(), CachedBagOStuffTest\testWriteCacheOnly(), MediaWiki\Auth\ThrottlerTest\testZeroCount(), MapCacheLRU\toArray(), User\touch(), WikiPage\triggerOpportunisticLinksUpdate(), Article\tryFileCache(), ResourceLoaderModule\validateScriptFile(), wfGenerateThumbnail(), wfIsBadImage(), wfIsDebugRawPage(), and MediaWiki\Session\PHPSessionHandler\write().
$command = array_shift( $args ) |
Definition at line 125 of file mcc.php.
Referenced by mccGetHelp().
$debug = isset( $options['debug'] ) |
Definition at line 31 of file mcc.php.
Referenced by MWDebug\getDebugInfo(), WikiImporter\setDebug(), MemcachedPhpBagOStuff\setDebug(), MultiWriteBagOStuff\setDebug(), ReplicatedBagOStuff\setDebug(), ResourceLoaderTest\testMakeModuleResponseConcat(), Exif\validate(), and wfThumbError().
$help = isset( $options['help'] ) |
Definition at line 32 of file mcc.php.
Referenced by ApiHelp\getHelpInternal(), HTMLFormField\getOOUI(), UploadForm\getSourceSection(), and ApiMain\modifyHelp().
$line = Maintenance::readconsole() |
if ($help) $mcc |
Definition at line 39 of file mcc.php.
Referenced by McTest\execute().
switch( $command) if ($bad) else |