tryFileCache() - not cacheable

June 13, 2004

If you have installed mediawiki, you might have seen this error, then again you might not have seen it because it only occurs when you attempt to cache the results.

Parsing the wiki is something of a processor and memory intensive task. The database for some of the mediaviki projets like the wikipedia is just huge and runs into giga bytes, so caching is a good option. In order to make it work you need to edit DefaultSettings.php. The comment at the top of the file forbids it but go ahead and do it anyway.

The changes are:

$wgShowIPinHeader = false;
$wgUseFileCache = true;
$wgUseGzip = false;

That's half the job one then you have to change into the directory where the wiki scripts are installed and then type


mkdir -p upload/cache
chmod 777 upload -R

Now the sofware will attempt to save the processed page on the hard disk whenever possible. Some pages (for example - the edit or history pages) cannot be cached.

Posted by raditha at June 13, 2004 12:34 PM
Your Ad Here

 

Jabber  |  Linux  |  mySQL  |  PHP  |  Java  |  Site Map  |  Wiki

Downloads  |  About  |  Links  |  Contact  |  Home

 

Copyright © Raditha Dissanayake 2003 - 2007

Terms of Use  |  Privacy

 

 

June 2004
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30