Last modified: 2012-04-12 13:55:21 UTC
When xcache has been enabled, the update script called from the command line fails with errors: ============ ?@server:~/public_html/wiki/maintenance$ php update.php PHP Warning: xcache_get(): xcache.var_size is either 0 or too small to enable var data caching in /home/xxxxxx/public_html/wiki/includes/BagOStuff.php on l ine 552 PHP Warning: xcache_set(): xcache.var_size is either 0 or too small to enable var data caching in /home/xxxxxx/public_html/wiki/includes/BagOStuff.php on l ine 567 ============ This seems to be an xcache-related problem; As this problem will not be fixed in xcache [http://xcache.lighttpd.net/ticket/228], I'd suggest to automatically disable all caches when scripts are invoked from command-line.
We shouldn't disable all caches from the command line if they work. It only seems to be Xcache with the problem, so hacked it to not do anything when in CLI in r87145.
I think eaccelerator has this problem too.
If caches don't get updated from a CLI script, there could be inconsistency problems. Running a CLI script with webserver-only caching enabled probably should raise a giant fatal error to the effect of "YOU MIGHT BE TOTALLY SCREWED".