Well i store them in the application scope because i call some function to fetch page information from the database and i wouldnt want them to load on every page request, I would much rather store them in the app scope and call them from the pages This was implemented to avoid hitting the db all the time for fetch page elements and things like that.
If i was to place them in the request scope would this mean they would load on every page request? Obs this isnt what i would want. On Apr 23, 7:23 pm, "Peter Tilbrook" <[EMAIL PROTECTED]> wrote: > No point. In fact an unnecessary overhead. > > Once the request is finished they are no longer required. Another page > request - they are used - then zip. No locking or anything required. > > Application vars have their place but for - at least how I use them - like > datasourcenames and such - Request scope is perfectly suitable. Just declare > them in the Application.cfm so they are available to all page requests. > > -- > Peter Tilbrook > ColdGen Internet Solutions > President, ACT and Region ColdFusion Users Group > PO Box 2247 > Queanbeyan, NSW, 2620 > AUSTRALIA > > http://www.coldgen.com/http://www.actcfug.com/ > > Tel: +61-2-6284-2727 > Mob: +61-0432-897-437 > > Email: [EMAIL PROTECTED] > MSN Messenger Live: Desktop General --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---