F3缓存问题
最近,我遇到错误
警告:require_once(account_header.php):无法打开流:否 这样的文件或目录 /home/contestium/dev/temp/dev.contestium.com.tpl.0oyr4na 第 1 行 致命错误:require_once():打开要求失败 'account_header.php' (include_path='.:/usr/share/pear:/usr/share/php') 在 /home/contestium/dev/temp/dev.contestium.com.tpl.0oyr4na 第 1 行
我已禁用缓存,
F3::set('CACHE',FALSE);
但这对我没有帮助。任何帮助将不胜感激。谢谢你!
Recently, I got error
Warning: require_once(account_header.php): failed to open stream: No
such file or directory in
/home/contestium/dev/temp/dev.contestium.com.tpl.0oyr4na on line 1
Fatal error: require_once(): Failed opening required
'account_header.php' (include_path='.:/usr/share/pear:/usr/share/php')
in /home/contestium/dev/temp/dev.contestium.com.tpl.0oyr4na on line 1
I have disabled caching with
F3::set('CACHE',FALSE);
But it was not helpful for me. Any help will be appreciated. Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用缓存文件时,相对路径将不起作用,因为缓存文件不在原始文件的目录中。
您需要提供“account_header.php”的完整路径,或者将包含此类内容的目录的路径添加到包含路径中。这可以在 php.ini 文件中或在 [运行时][1] 中完成。
看起来缓存的文件仍在使用,对吗?如果删除这些文件,它会获取原始文件(而不是缓存文件)吗?
When using cached files, your relative path won't work, as the cached files are not in the original file's directory.
You'll either need to provide the full path to 'account_header.php', or add the path to the directory containing such to your include path. This can either be done in your php.ini file, or at [runtime][1].
It looks like the cached files are still being used, right? If you delete those files, will it fetch the original file (and not the cached files)?