Skip to content

Commit 23bc3f2

Browse files
committed
add new env var
1 parent e2a1ef9 commit 23bc3f2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/recipes/environment-variables-system-properties.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,21 @@ A boolean value. If disabled, returns a 200 status code to the client even if an
716716

717717
A boolean value. If enabled, does not store empty sessions to the client or session storage.
718718

719+
#### LUCEE_STORAGE_WARN_COMPLEX_VALUES
720+
721+
*SysProp:* `-Dlucee.storage.warn.complex.values`
722+
*EnvVar:* `LUCEE_STORAGE_WARN_COMPLEX_VALUES`
723+
724+
**Lucee 6 only** - Controls whether Lucee logs a warning when complex values (structs, arrays, queries, etc.) are stored in session or client scope. When complex values are present, Lucee 6 cannot properly detect changes and must update the storage on every request, which may impact performance.
725+
726+
By default, this warning is enabled (`true`) to alert developers about potential performance implications. Set to `false` to suppress the warning once you understand and accept this behavior, particularly useful in production environments or when using frameworks that intentionally store complex values in these scopes (e.g., FW/1).
727+
728+
The warning is logged to `application.log` with the message: "the session scope contains complex values, Lucee cannot proper detect changes in the values and because of that updates the storage with every request."
729+
730+
**Default:** `true` (warnings enabled)
731+
732+
**Note:** This setting only applies to Lucee 6. Lucee 7 natively supports complex values in session and client scopes with proper change detection, so this warning does not occur and this setting has no effect.
733+
719734
#### LUCEE_SUPPRESS_WS_BEFORE_ARG
720735

721736
*SysProp:* `-Dlucee.suppress.ws.before.arg`

0 commit comments

Comments
 (0)