I know ActionController::Base.view_paths gets me the load paths for the views but the only thing I can finde for clear_cache has to do with the db.
I know ActionController::Base.view_paths gets me the load paths for the views but the only
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
https://github.com/rails/rails/blob/3-2-stable/actionpack/lib/action_view/template/resolver.rb#L39-41
The
@cachedvariable is modified wherever thecachedmethod is called: https://github.com/rails/rails/blob/3-2-stable/actionpack/lib/action_view/template/resolver.rb#L70-90It will clear all cached templates and load them again from disk, by the looks of things.