laravel - 如何在开发模式下禁用模板缓存?

标签 laravel laravel-4

每次当我更改模板中的某些内容时,我都必须手动清除缓存。 有没有办法在开发模式下禁用模板缓存?

最佳答案

如果您使用的是 PHP5.5,那么我建议在 php.ini 中配置 opcache

opcache.revalidate_freq=0

此值设置应从缓存更新 View 的时间频率。该值通常为 60 秒左右。将其设置为 0 将使您的缓存每次都会更新。

关于laravel - 如何在开发模式下禁用模板缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16971445/

相关文章:

laravel - 如何从数据库 laravel 中的created_at或updated_at字段在 Blade View 中显示unix时间戳?

sqlite - SQLite 数据库文件不存在时迁移失败?

php - 调用未定义的方法 Illuminate\Database\Query\Builder::associate()

laravel - Xdebug 断点总是有效,除非使用 @runTestsInSeparateProcesses 时?

php - Laravel 4.2 在 Windows 上安装

php - 将带有散列密码的用户表从旧的 php 应用程序迁移到新的 laravel 应用程序

php - Laravel:使用自定义请求 header 测试路由

laravel - 基本的 OOPS 概念需要澄清

php - 如何修复 : The difference between the request time and the current time is too large

php - 与基于相似字段的模型具有 ownTo 关系的两个模型的顺序