Symfony 2 | OPcache | Warning: filemtime(): stat failed for Acme-DemoBundle-Controller-SecuredController.cache.php in FileCacheReader.php -
i have installed symfony 2 , have activated opcache (zendoptimizer) extension , when intent generate cache of web page o've got error :
warning: filemtime(): stat failed c:/apache24/htdocs/symfony/app/cache/dev/annotations/acme-demobundle-controller-securedcontroller.cache.php in c:\apache24\htdocs\symfony\vendor\doctrine\common\lib\doctrine\common\annotations\filecachereader.php line 97
this opcache config :
zend_extension="c:\php\ext\php_opcache.dll" opcache.enable=1 opcache.use_cwd=0 opcache.validate_timestamps=0 ; file stat opcache.revalidate_freq=2 ; seconds opcache.revalidate_path=0 opcache.save_comments=0 opcache.load_comments=0 opcache.dups_fix=0 opcache.inherited_hack=0 opcache.log_verbosity_level=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.enable_file_override=1 opcache.max_wasted_percentage=5 ; percent waste until restart opcache.consistency_checks=0 opcache.force_restart_timeout=180 opcache.blacklist_filename=paypal.php opcache.fast_shutdown=1 opcache.optimization_level=0xffffffff opcache.enable_slow_optimizations=1 opcache.max_file_size=0
when disable extension, generation of cache works
versions :
- symfony 2.3.3
- php 5.5
- apache 2.4.6 windows
i had same problem on mac, using homebrew php55 version. mentioned in optimizer documentation, option opcache.enable_file_override=1 may break frameworks. seems case symfony2. switching value 0 solved problem.
Comments
Post a Comment