Answer the question
In order to leave comments, you need to log in
How to disable caching in Ruby on Rails?
Hello.
Guys, please tell me what settings to "pull" to disable caching?
The problem is that in order to apply changes to the model, you must restart the server. It is clear that this is not an option.
Rather, the problem is that I am completely unfamiliar with the "Rail" and the need to use it is a one-time.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
In development, this shouldn't be a problem.
Check the environment config config/environments/*.rbconfig.action_controller.perform_caching = false
Because the web server is running in production mode. In this mode, by default, all classes are cached. In development, the ... development mode is used. These modes are specified by the RAILS_ENV environment variable.
Then models and controllers will not be cached.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question