Page MenuHomePhabricator

Update-script does not work properly when xcache is enabled
Open, MediumPublic

Description

Author: jweberhofer

Description:
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.


Version: 1.16.x
Severity: normal

Details

Reference
bz28752

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:29 PM
bzimport set Reference to bz28752.
bzimport added a subscriber: Unknown Object (MLST).

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".