Laravel:路径.../缓存中不存在文件

2024-03-19

完整错误:

Exception has occurred.
Illuminate\Contracts\Filesystem\FileNotFoundException: File does not exist at path D:\Projects\shop\back-end\storage\framework/cache/data/9c/1c/9c1c01dc3ac1445a500251fc34a15d3e75a849df

我尝试了 php artisan cache:clear、php artisan config:cache。没有结果..


如果您正在访问您的缓存存储Cache::has()这是预期的行为。内心深处Cache::has()将尝试访问预期位置并抛出一个FileNotFoundException如果该位置不存在。(Source) https://github.com/laravel/framework/blob/5.7/src/Illuminate/Filesystem/Filesystem.php#L41

In Illuminate\Cache\FileStore该异常被捕获并转换为空负载。(Source) https://github.com/laravel/framework/blob/5.7/src/Illuminate/Cache/FileStore.php#L174

某些调试工具(例如 XDebug)将在FileNotFoundException您可以将其视为误报。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Laravel:路径.../缓存中不存在文件 的相关文章

随机推荐