4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ruby on Rails キャッシュ無効

Last updated at Posted at 2016-09-16

注)Ruby on Rails 5.0.0を使っています。

Rails内をいじってサーバ再起動、いじってまた再起動を繰り返すのが面倒になってきて調べた対策をメモしておきます。下記を行うことで即座に修正が反映されるようにすることができます。

config/environments/development.rb
の17行目あたりにある

config.action_controller.perform_caching = true

をfalseにするとキャッシュが無効になり、即反映できます。

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?