Skip to content

Commit

Permalink
use memory store caches (#2532)
Browse files Browse the repository at this point in the history
use :memory_store instead of mem cache.
  • Loading branch information
johrstrom authored Feb 1, 2023
1 parent 4a76d84 commit dd9580c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions apps/dashboard/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@
config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true

config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{2.days.to_i}"
}
else
config.action_controller.perform_caching = false

config.cache_store = :null_store
end

config.cache_store = :memory_store

config.action_mailer.perform_caching = false

# Print deprecation notices to the Rails logger.
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# config.log_tags = [ :request_id ]

# Use a different cache store in production.
# config.cache_store = :mem_cache_store
config.cache_store = :memory_store

# Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque
Expand Down

0 comments on commit dd9580c

Please sign in to comment.