Skip to content

Commit 8326013

Browse files
committed
[~] fix copilot review comment
1 parent e21fbad commit 8326013

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/mongoid/config.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,11 @@ def validate_isolation_level!(level)
236236
# @note This option must be set during application initialization and
237237
# should not be changed at runtime. Documents created before the option
238238
# is enabled will not have caches initialized and will not benefit from
239-
# caching even if the option is later enabled.
239+
# caching even if the option is later enabled. If the option is
240+
# disabled after being enabled, documents created while it was enabled
241+
# will retain their per-attribute caches but, once the option is
242+
# disabled, those caches will no longer be consulted when reading
243+
# attribute values.
240244
option :cache_attribute_values, default: false
241245

242246
# When this flag is true, callbacks for every embedded document will be

0 commit comments

Comments
 (0)