examples/simple-poller/config/environments/development.rb in hyper-mesh-0.5.0 vs examples/simple-poller/config/environments/development.rb in hyper-mesh-0.5.1

- old
+ new

@@ -12,10 +12,22 @@ config.eager_load = false # Show full error reports. config.consider_all_requests_local = true - config.cache_store = :file_store, './rails_cache_dir' + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false config.action_mailer.perform_caching = false