1 MediaWiki's SiteStore can be cached and stored in a flat file,
2 in a json format. If the SiteStore is frequently accessed, the
3 file cache may provide a performance benefit over a database
4 store, even with memcached in front of it.
8 File-based caching can be enabled by setting $wgSitesCacheFile
9 to the file path of the cache file.
11 The file can then be generated with the rebuildSitesCache.php
16 In the sites cache file, sites are listed in a key-value
17 map, with the key being the site's global id (e.g. "enwiki")
18 and a key-value map as the value. The site list is wrapped
19 with in a "sites" key.
25 "globalid": "aawiktionary",
27 "group": "wiktionary",
34 "file_path": "http:\/\/aa.wiktionary.org\/w\/$1",
35 "page_path": "http:\/\/aa.wiktionary.org\/wiki\/$1"