On 14/10/12 15:07, Dave Humphrey wrote:
> Two specific cases I've encountered where it was "better" to have the
> file cache off:
>
> 2) If you're running multiple sites with different skins from the same
> MediaWiki. For example, running a mobile skin from the same database.
> If you have the file cache turned on in both then one cache entry
> becomes stale when the article is edited from the other site. The
> simple solution is to turn off the file cache on both sites. I don't
> know how Wikipedia's mobile site is setup and there is likely some way
> to have file caches working on both sites.

You can overcome that by:

a) Setting a different $wgRenderHashAppend (if the rendered content
changes, such as the mobile skin being in a different folder, or domain
and having and some pages using full paths)
(you still need it without file caching)

and

b) Using a different $wgFileCacheDirectory for each of them, which you
can then base on $wgRenderHashAppend, eg:
$wgFileCacheDirectory = "/root/wiki_filecache/$wgDBname$wgRenderHashAppend"





_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to