MediaWiki caching error

when I went to my mediawiki instal on my vps, I started geting caching error messages. it was not there before, so I am not sure what happened.

I tried to fix it by doing the upgrade from the OneClick panel. It still ended up having caching errors.

I was able to get it working again by changing

$wgMainCacheType = CACHE_ACCEL;


$wgMainCacheType = CACHE_ANYTHING;

Is there a better way to fix this problem?

To utilise CACHE_ACCEL ensure that XCache (or APC) is installed for the domain in question.


You can turn off the object caching with

and use file caching for non-logged-in users by setting

$wgUseFileCache = true; $wgFileCacheDirectory = "$IP/cache"; $wgShowIPinHeader = false;

FWIW, I have Memcached on a box, and I STILL don’t use wgMainCacheType

The static file caching for non-logged in users, since I don’t permit them to edit anyway, is perfect for me.