Handbuch:compareParserCache.php
Appearance
Outdated translations are marked like this.
MediaWiki Version: | ≥ 1.24 |
MediaWiki-Datei: compareParserCache.php | |
---|---|
Speicherort: | maintenance/ |
Quellcode: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Klassen: | CompareParserCache |
Details
Die compareParserCache.php-Datei ist ein Wartungsskript, um zufällige Seiten zu parsen und die Ausgabe zum Cache zu vergleichen. This script helps developers test the Parser cache .
Optionen/Argumente
Option | Beschreibung | Notwendig? |
---|---|---|
--namespace | Page namespace number | Notwendig |
--maxpages | Number of pages to try | Notwendig |
Verwendung
php maintenance/compareParserCache.php --maxpages pages --namespace pagesNamespace
Terminal
$ php maintenance/compareParserCache.php --maxpages 10 --namespace 8 No parser cache entry found for 'MediaWiki:Common.js/Slideshows.js'. No parser cache entry found for 'MediaWiki:RefToolbar.js'. No parser cache entry found for 'MediaWiki:DebateTree.js'. No parser cache entry found for 'MediaWiki:EditToolbar.js'. No parser cache entry found for 'MediaWiki:Gadget-removeAccessKeys.js'. Parsed 'MediaWiki:Gadget-HotCat.js' in 0.3 seconds Found cache entry found for 'MediaWiki:Gadget-HotCat.js'... No differences found. No parser cache entry found for 'MediaWiki:Gadget-removeAccessKeys.js'. No parser cache entry found for 'MediaWiki:RefToolbarMessages-hi.js'. No parser cache entry found for 'MediaWiki:Common.js/addin-mooc-localization.js'. No parser cache entry found for 'MediaWiki:Navigation.js'. Checked 10 pages; 1 had prior cache entries. Pages with differences found: 0 Average parse time: 0.3 sec