0
看起来好像cache_classes => false
仍然会缓存它们,我必须关闭并重新启动服务器以查看所有更改。有任何想法吗?我真的被卡住了,这是一个非常烦人的问题。Rails:cache_classes => false仍然高速缓存
我development.rb
看起来是这样的:
Total::Application.configure do
config.cache_classes = false
config.whiny_nils = true
config.threadsafe!
# Add the fonts path
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
# Precompile additional assets
config.assets.precompile += %w(.svg .eot .woff .ttf)
config.serve_static_assets = true
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# config.eager_load = false
config.action_mailer.default_url_options = { :host => 'lvh.me:3000' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default :charset => "utf-8"
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com" # ETC
}
config.active_support.deprecation = :log
config.action_dispatch.best_standards_support = :builtin
config.active_record.mass_assignment_sanitizer = :strict
config.assets.compress = false
config.assets.debug = true
end
任何帮助将是巨大的。谢谢。
这固定了我的一切。任何想法为什么? – jahrichie
好的,我会更新我的答案。 –
我尝试过这样做,并且让事情变得更糟,例如,所有rake任务都停止工作。这不是一个解决方案。 – jahrichie