Skip to content

Commit

Permalink
Disable Marshal in cache_store
Browse files Browse the repository at this point in the history
Move from :json_allow_marshal to :json

Fixes TOB-RGM-3
  • Loading branch information
segiddins committed Sep 10, 2024
1 parent 287e3eb commit b29d3f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
config.action_controller.enable_fragment_cache_logging = true

config.cache_store = :mem_cache_store,
{ compress: true, compression_min_size: 524_288 }
{ compress: true, compression_min_size: 524_288, serializer: :json }
config.public_file_server.headers = {
"Cache-Control" => "public, max-age=#{2.days.to_i}"
}
Expand Down
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@
socket_failure_delay: 0.2,
compress: true,
compression_min_size: 524_288,
value_max_bytes: 2_097_152 # 2MB
value_max_bytes: 2_097_152, # 2MB
serializer: :json
}

config.middleware.use Gemcutter::Middleware::Redirector
Expand Down
3 changes: 2 additions & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
socket_failure_delay: 0.2,
compress: true,
compression_min_size: 524_288,
value_max_bytes: 2_097_152 # 2MB
value_max_bytes: 2_097_152, # 2MB
serializer: :json
}

config.middleware.use Gemcutter::Middleware::Redirector
Expand Down

0 comments on commit b29d3f1

Please sign in to comment.