MediaWiki caching error

apps

#1

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.

http://mistysrealm.org/wiki/index.php

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;

to

$wgMainCacheType = CACHE_ANYTHING;

Is there a better way to fix this problem?


#2

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

Alternatively:

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;


#3

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.