Question
Advise on locking application variables in CF8
We use application scope variables solely as "constants". We
set their values in the application.cfc OnApplicationStart. Their
values are then only ever read, never written to.
1. I put cflock statements around them in application.cfc. Is this really necessary?
2. Do I still need to put cflock statements with type="READONLY" when they're referenced in templates? Again, need to emphasize, their values are *never* rewritten. They are only ever read. This is by design, and is a standard we use, so there will never be a future situation where an application scope variable is written to outside of OnApplicationStart.
Thank you.
1. I put cflock statements around them in application.cfc. Is this really necessary?
2. Do I still need to put cflock statements with type="READONLY" when they're referenced in templates? Again, need to emphasize, their values are *never* rewritten. They are only ever read. This is by design, and is a standard we use, so there will never be a future situation where an application scope variable is written to outside of OnApplicationStart.
Thank you.
