Skip to content

Commit

Permalink
Merge pull request #643 from ChicagoWorldcon/stag-fix-cache-config
Browse files Browse the repository at this point in the history
fix for cache config. Use memory for now as we do no cache much
  • Loading branch information
Gailbear authored Aug 17, 2022
2 parents d3e83ef + aed863a commit 831e15f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
config.log_tags = [ :request_id ]

# Use a different cache store in production.
config.cache_store = :mem_cache_store
# config.cache_store = :mem_cache_store
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{10.minutes.to_i}"
}

# Use a real queuing backend for Active Job (and separate queues per environment).
config.active_job.queue_adapter = :sidekiq
Expand Down
6 changes: 5 additions & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
config.log_tags = [ :request_id ]

# Use a different cache store in staging.
config.cache_store = :mem_cache_store
# config.cache_store = :mem_cache_store
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{10.minutes.to_i}"
}

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

0 comments on commit 831e15f

Please sign in to comment.