Příručka:Mcc.php
Appearance
Soubor MediaWiki: mcc.php | |
---|---|
Lokalita: | maintenance/ |
Zdrojový kód: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Třídy: | Vyhledat zdrojový kód • Vyhledat dokumentaci |
Podrobnosti
Soubor mcc.php je skript údržby, který funguje jako diagnostický nástroj uložený v memcache.
MemCached Command (mcc) is an interactive command tool that lets you interact with the MediaWiki memcached cache.
List of commands
These interactive commands are available in mcc.php:
Command | Description |
---|---|
get | grabs something |
getsock | lists sockets |
set | changes something |
delete | deletes something |
history | show command line history |
server | show current memcached server |
dumpmcc | shows the whole thing |
exit | exit mcc |
quit | exit mcc |
help | help about a command |
Usage
php maintenance/run.php mcc
Terminal
$ php maintenance/run.php mcc > getsock resource(757) of type (persistent stream) > set A Wiki > get A Getting A[] Wiki > server 127.0.0.1:11211 > help get : grabs something getsock: lists sockets set : changes something delete : deletes something history: show command line history server : show current memcached server dumpmcc: shows the whole thing exit : exit mcc quit : exit mcc help : help about a command > exit
Ve verzi MediaWiki 1.39.12 a starší musíte vyvolat skripty údržby pomocí
php maintenance/scriptName.php
namísto php maintenance/run.php scriptName
.Common error
- Bad command
This error occurs when an invalid command is given. See the list of valid commands.