Skip to content

Commit 9521241

Browse files
Tweak raise_on_invalid_cache_expiration_time doc [ci-skip]
This tweaks the wording and punctuation, and links to API docs for the relevant cache methods.
1 parent 494fa2c commit 9521241

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

guides/source/configuring.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2787,10 +2787,11 @@ The default value depends on the `config.load_defaults` target version:
27872787

27882788
#### `config.active_support.raise_on_invalid_cache_expiration_time`
27892789

2790-
Specifies if an `ArgumentError` should be raised if `Rails.cache` `fetch` or
2791-
`write` are given an invalid `expires_at` or `expires_in` time.
2790+
Specifies whether an `ArgumentError` should be raised if `Rails.cache`
2791+
[`fetch`][ActiveSupport::Cache::Store#fetch] or [`write`][ActiveSupport::Cache::Store#write]
2792+
are given an invalid `expires_at` or `expires_in` time.
27922793

2793-
Options are `true`, and `false`. If `false`, the exception will be reported
2794+
Options are `true` and `false`. If `false`, the exception will be reported
27942795
as `handled` and logged instead.
27952796

27962797
The default value depends on the `config.load_defaults` target version:
@@ -2800,6 +2801,9 @@ The default value depends on the `config.load_defaults` target version:
28002801
| (original) | `false` |
28012802
| 7.1 | `true` |
28022803

2804+
[ActiveSupport::Cache::Store#fetch]: https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html#method-i-fetch
2805+
[ActiveSupport::Cache::Store#write]: https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html#method-i-write
2806+
28032807
### Configuring Active Job
28042808

28052809
`config.active_job` provides the following configuration options:

0 commit comments

Comments
 (0)