【发布时间】:2015-09-28 10:47:52
【问题描述】:
我正在更新一个 symfony2 网站,每次更新控制器或树枝文件后,我运行“php app/console cache:clear”,网站停止工作 5 分钟,然后它再次工作。在联合国很少更新后,我清除了缓存,网站不想再运行了,我有 500 内部服务器错误,symfony 的日志文件中没有条目,但是我在 php 日志中找到了:
[Thu Sep 24 08:10:05 2015] [error] [client 1.2.3.4] FastCGI: server "/run/fcgi-bin/www.mysite.com:80.fcgi" stderr: PHP message: PHP Warning: require_once(/var/www/mysite.com/app/cache/prod/jms_diextra/doctrine/EntityManager_5602df03afff5.php): failed to open stream: No such file or directory in /var/www/mysite.com/app/cache/prod/appProdProjectContainer.php on line 279
[Thu Sep 24 08:10:05 2015] [error] [client 1.2.3.4] FastCGI: server "/run/fcgi-bin/www.mysite.com:80.fcgi" stderr: PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/mysite.com/app/cache/prod/jms_diextra/doctrine/EntityManager_5602df03afff5.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mysite.com/app/cache/prod/appProdProjectContainer.php on line 279
这似乎是实体问题,但我确定我没有实体更新。我什至试图通过上传所有原始文件来回滚,但没有办法!
我不明白:
- 为什么每次缓存后我必须等待 5 分钟:清除?
- 日志错误是什么意思?
非常感谢:)
【问题讨论】: