Skip to content

Commit

Permalink
Cache classes and remove null cache store config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed Jan 27, 2024
1 parent 432670a commit 7dfb8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
# recommended that you enable it in continuous integration systems to ensure eager
# loading is working properly before deploying your code.
config.eager_load = ENV['CI'].present? || ENV['EAGER_LOAD'].present?
config.cache_classes = ENV['CI'].present? || ENV['EAGER_LOAD'].present?

# Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = true
Expand All @@ -56,7 +57,6 @@
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = true
config.cache_store = :null_store

# Render exception templates for rescuable exceptions and raise for other exceptions.
config.action_dispatch.show_exceptions = :none
Expand Down

0 comments on commit 7dfb8bd

Please sign in to comment.