Laravel 5清除视图缓存 [英] Laravel 5 Clear Views Cache

查看:232
本文介绍了Laravel 5清除视图缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到Laravel缓存视图存储在~/storage/framework/views.中,随着时间的流逝,它们会占用我的空间.如何删除它们?有没有可能的命令?我尝试了php artisan cache:clear,,但是它没有清除视图缓存.这样,我必须手动删除该文件夹中的文件.

I notice that Laravel cache views are stored in ~/storage/framework/views. Over time, they get to eat up my space. How do I delete them? Is there any command that could? I tried php artisan cache:clear, but it is not clearing the views cache. With that, I have to manually delete the files in the said folder.

此外,如何禁用视图缓存?

Also, how do I disable the views caching?

推荐答案

自Laravel 5.1开始,该任务现在有了php artisan view:clear命令

There is now a php artisan view:clear command for this task since Laravel 5.1

这篇关于Laravel 5清除视图缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆