Laravel:文件不存在于路径... / cache

时间:2018-07-09 22:49:41

标签: laravel caching

完整错误:

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。没有结果。

1 个答案:

答案 0 :(得分:2)

如果您使用SELECT * , ROUND(alias.ratings, 1) AS ratings FROM ( SELECT bp.bizid , bp.usrid , bp.website, , ((SELECT SUM(rating) FROM ratings WHERE bizid=bp.bizid)/(SELECT COUNT(*) FROM ratings WHERE bizid=bp.bizid)) AS 'ratings' , (SELECT COUNT(*) FROM bzreviews WHERE bizid=bp.bizid) AS 'ttlreviews' , bp.phoneno, als.bizname , (SELECT COUNT(*) FROM endorsment WHERE bizid=bp.bizid) AS 'endorses' , als.imgname, bp.`location`, bp.`ownership` , (SELECT COUNT(*) FROM follows WHERE bizid=bp.bizid) AS 'followers' , bp.categories , bp.openhours , bp.bizdecri FROM bizprofile AS bp INNER JOIN alluser AS als ON bp.usrid = als.userid WHERE als.usertype = 'Business' ) AS alias 访问缓存存储,这是预期的行为。深入Cache::has()会尝试访问预期的位置,如果不存在该位置,则会抛出Cache::has()(Source)

FileNotFoundException中,此异常被捕获并转换为空的有效负载。 (Source)

某些调试工具(例如XDebug)将在Illuminate\Cache\FileStore上停止运行,您可以将其视为误报。