Laravel 5 Clear Views Cache(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 清除视图缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Laravel 5 清除视图缓存
基础教程推荐
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何替换eregi() 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
