[Mediawiki-l] Smart caching

Brion Vibber brion at pobox.com
Wed Jul 7 02:21:39 UTC 2004

Jaime E. Villate wrote:
> How do you activate Smart caching? and how do you specify the directory
> where you want the HTML-page cache?

MediaWiki includes a limited to-disk page caching option; only 
non-logged-in hits are stored, and only for pages that aren't redirects, 
special pages, etc.

To enable it, add lines like these to LocalSettings.php:
   $wgUseFileCache = true;
   $wgFileCacheDirectory = "/some/directory/cache";

The directory must exist and must be writable by the user that PHP runs 
as (the web server user or sometimes your user account). It should be 
safe to put it under the image upload directory, or you can put it 
somewhere else. It doesn't have to be directly accessible via the web, 
but if it is it doesn't hurt.

For really fancy caching you can use a squid reverse proxy in front of 
your web server and enable the squid modes, but this is rather trickier 
and requires additional servers running.

-- brion vibber (brion @ pobox.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20040706/5072f31b/attachment.pgp 

More information about the MediaWiki-l mailing list