dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resourceloader: Remove obsolete msg_resource_links table
[lhc/web/wiklou.git]
/
maintenance
/
rebuildSitesCache.php
diff --git
a/maintenance/rebuildSitesCache.php
b/maintenance/rebuildSitesCache.php
index
862a983
..
2bc7510
100644
(file)
--- a/
maintenance/rebuildSitesCache.php
+++ b/
maintenance/rebuildSitesCache.php
@@
-23,7
+23,7
@@
require_once __DIR__ . '/Maintenance.php';
/**
require_once __DIR__ . '/Maintenance.php';
/**
- * Maintenance script to dump
the
SiteStore as a static json file.
+ * Maintenance script to dump
a
SiteStore as a static json file.
*
* @ingroup Maintenance
*/
*
* @ingroup Maintenance
*/
@@
-32,17
+32,17
@@
class RebuildSitesCache extends Maintenance {
public function __construct() {
parent::__construct();
public function __construct() {
parent::__construct();
- $this->mDescription = "
Dumps site store as json
";
+ $this->mDescription = "
Cache sites as json for file-based lookup.
";
$this->addOption( 'file', 'File to output the json to', false, true );
}
public function execute() {
$this->addOption( 'file', 'File to output the json to', false, true );
}
public function execute() {
- $site
ListFileCacheBuilder = new SiteListFileCach
eBuilder(
-
SiteSQLStore::newInstanc
e(),
+ $site
sCacheFileBuilder = new SitesCacheFil
eBuilder(
+
new DBSiteStor
e(),
$this->getCacheFile()
);
$this->getCacheFile()
);
- $site
ListFileCach
eBuilder->build();
+ $site
sCacheFil
eBuilder->build();
}
/**
}
/**
@@
-55,7
+55,7
@@
class RebuildSitesCache extends Maintenance {
$jsonFile = $this->getConfig()->get( 'SitesCacheFile' );
if ( $jsonFile === false ) {
$jsonFile = $this->getConfig()->get( 'SitesCacheFile' );
if ( $jsonFile === false ) {
- $this->error( 'Error: No
sites cache file is set in configuration
.', 1 );
+ $this->error( 'Error: No
file set in configuration for SitesCacheFile
.', 1 );
}
}
}
}