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.
This commit is contained in:
Javi Martín
2024-04-15 14:18:39 +02:00
parent e45dc5d45a
commit 9054d31ab3

View File

@@ -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