A
A
Alexey Dabalaev2017-01-20 11:17:23
Ruby on Rails
Alexey Dabalaev, 2017-01-20 11:17:23

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

2 answer(s)
A
Artur Bordenyuk, 2017-01-20
@HighQuality

In development, this shouldn't be a problem.
Check the environment config config/environments/*.rb
config.action_controller.perform_caching = false

R
Roman Mirilaczvili, 2017-01-20
@2ord

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 question

Ask a Question

731 491 924 answers to any question