donglu3243 2013-08-26 13:05
浏览 70

Symfony 2 | OPcache | 警告:Filemtime():FileCacheReader.php中的Acme-DemoBundle-Controller-SecuredController.cache.php的stat失败

I have installed Symfony 2 and I have activated the opcache (ZendOPtimizer) extension and when I intent to generate the cache of a web page O've got this error :

Warning: filemtime(): stat failed for 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 is my 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 I disable this extension, the generation of the cache works

Versions :

  • Symfony 2.3.3
  • PHP 5.5
  • Apache 2.4.6 For Windows
  • 写回答

2条回答 默认 最新

  • doulao2029 2013-08-27 07:50
    关注

    1 - Make sure you have disabled APC or it'll create conflicts.

    2 - Make sure you've restarted apache entirely after activating opcache.

    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效