Manual:CompareParserCache.php/ko
Appearance
| 미디어위키 버전: | ≥ 1.24 |
| 미디어위키 파일: compareParserCache.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| 클래스: | CompareParserCache |
상세
compareParserCache.php file is a maintenance script to parse random pages and compare output to cache. This script helps developers test the Parser cache.
옵션/인수
| Option | Description | Required? |
|---|---|---|
| --namespace | Page namespace number | Required |
| --maxpages | Number of pages to try | Required |
사용법
php maintenance/run.php compareParserCache --maxpages pages --namespace pagesNamespace
Terminal
$ php maintenance/run.php compareParserCache --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
In MediaWiki version 미디어위키 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.