Index: branches/wmf/1.19wmf1/maintenance/rebuildLocalisationCache.php |
— | — | @@ -36,6 +36,8 @@ |
37 | 37 | $this->mDescription = "Rebuild the localisation cache"; |
38 | 38 | $this->addOption( 'force', 'Rebuild all files, even ones not out of date' ); |
39 | 39 | $this->addOption( 'threads', 'Fork more than one thread', false, true ); |
| 40 | + $this->addOption( 'outdir', 'Override the output directory (normally $wgCacheDirectory)', |
| 41 | + false, true ); |
40 | 42 | } |
41 | 43 | |
42 | 44 | public function memoryLimit() { |
— | — | @@ -65,6 +67,9 @@ |
66 | 68 | if ( $force ) { |
67 | 69 | $conf['forceRecache'] = true; |
68 | 70 | } |
| 71 | + if ( $this->hasOption( 'outdir' ) ) { |
| 72 | + $conf['storeDirectory'] = $this->getOption( 'outdir' ); |
| 73 | + } |
69 | 74 | $lc = new LocalisationCache_BulkLoad( $conf ); |
70 | 75 | |
71 | 76 | $codes = array_keys( Language::getLanguageNames( true ) ); |
Property changes on: branches/wmf/1.19wmf1/maintenance/rebuildLocalisationCache.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
72 | 77 | Merged /branches/new-installer/phase3/maintenance/rebuildLocalisationCache.php:r43664-66004 |
73 | 78 | Merged /branches/JSTesting/maintenance/rebuildLocalisationCache.php:r100352-107913 |
74 | 79 | Merged /branches/REL1_15/phase3/maintenance/rebuildLocalisationCache.php:r51646 |
75 | 80 | Merged /branches/wmf/1.18wmf1/maintenance/rebuildLocalisationCache.php:r97508 |
76 | 81 | Merged /branches/REL1_17/phase3/maintenance/rebuildLocalisationCache.php:r81445,81448 |
77 | 82 | Merged /branches/sqlite/maintenance/rebuildLocalisationCache.php:r58211-58321 |
78 | 83 | Merged /trunk/phase3/maintenance/rebuildLocalisationCache.php:r111002,111029,111034,111062,111067,111076,111085,111128,111144,111251,111397,111571,111574,111597,112076 |