From 9054d31ab39894620a75d854e33a90f9d3507748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 15 Apr 2024 14:18:39 +0200 Subject: [PATCH] Raise exceptions on invalid cache expiration time It doesn't really affect us (unless some of our dependencies make this mistake) because we only use `expires_in/expires_at` once and we do it correctly, but it might be help us detect this issue if we ever introduce it in the future. --- config/initializers/new_framework_defaults_7_1.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/new_framework_defaults_7_1.rb b/config/initializers/new_framework_defaults_7_1.rb index 7a45f6d21..1b93dbade 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -91,7 +91,7 @@ Rails.application.config.active_job.use_big_decimal_serializer = true # Options are `true`, and `false`. If `false`, the exception will be reported # as `handled` and logged instead. #++ -# Rails.application.config.active_support.raise_on_invalid_cache_expiration_time = true +Rails.application.config.active_support.raise_on_invalid_cache_expiration_time = true ### # Specify whether Query Logs will format tags using the SQLCommenter format