Storing object refernces in memory, good idea or bad idea?
Hey all,
These is probably a somehwhat basic question, but it's something i've wondered about for a while. Is it alright to store object references in a persistant scope, like application or server?
Basically just doing this once in application.cfm
<cfset application.siteMethods = createObject("component","components.siteMethods")>
then calling stuff like
<cfset serverInit = application.siteMethods.init(application.dsn)>
instead of having to reinstatiated it on every page it is required? Any input is appreciated. Thanks!
