XF 1.1 Problem when turning APC.Stat off

Brent W

Well-known member
Whenever I set apc.stat = 0 in my php.ini it breaks my xenForo installation with the following error:

Code:
Fatal error: main(): Failed opening required '' (include_path='/home/fish/www/library:.:.:/usr/local/share/pear') in /home/fish/www/library/Zend/Controller/Request/Http.php on line 23
Any ideas on why?
 
http://www.php.net/manual/en/apc.configuration.php#ini.apc.stat

apc.stat integer

Be careful changing this setting. This defaults to on, forcing APC to stat (check) the script on each request to determine if it has been modified. If it has been modified it will recompile and cache the new version. If this setting is off, APC will not check, which usually means that to force APC to recheck files, the web server will have to be restarted or the cache will have to be manually cleared. Note that FastCGI web server configurations may not clear the cache on restart. On a production server where the script files rarely change, a significant performance boost can be achieved by disabled stats.

For included/required files this option applies as well, but note that for relative path includes (any path that doesn't start with / on Unix) APC has to check in order to uniquely identify the file. If you use absolute path includes APC can skip the stat and use that absolute path as the unique identifier for the file.

Try restarting your server to clear the cache.
 
Top Bottom