美文网首页
Rails5 development 本地开发开启cache 缓

Rails5 development 本地开发开启cache 缓

作者: ifree321 | 来源:发表于2019-10-07 14:58 被阅读0次

参考https://blog.bigbinary.com/2016/01/25/caching-in-development-environment-in-rails5.html

rails 4配置config/environments/development.rb如下:

config.action_controller.perform_caching = true

可开启开发环境缓存,但是需要重启server.

rails 5使用命令:

 $ rails dev:cache

开启/关闭缓存, 不需要重启rails server.

具体请查看如上参考的文章。

相关文章

网友评论

      本文标题:Rails5 development 本地开发开启cache 缓

      本文链接:https://www.haomeiwen.com/subject/eadmpctx.html