Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Marshal in cache_store #5017

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Loading