Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Globals that do not need to be globals

Quote Reply
Globals that do not need to be globals
Hi:

In the course of trying to find if some info was in a global I could access, I did a global dump. As I was looking at all the globals, I noticed a couple that really do not need to be recalculated for every page...

for instance, I have a global to spit out the newest user, and this only shows up on the main page... does not need to be re-figured-out for all the sub-pages and threads.

Is there a way to restrict a global so it is ONLY calculated for one page, or a specific series of pages... or am I just being stupid? Does it really not have any effect on things...

(To be honest, I am sure that the global for newest user has very little effect. But there are a couple others, globals that call the five newest threads, chop them to 100 characters, and then output them as XML that I am more concerned about- that would take a bit of time, especially if something like that was called for EVERY page view, and really only needed to be calculated when the XML was called)

Anyway, love to hear your thoughts!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Subject Author Views Date
Thread Globals that do not need to be globals carfac 2640 Nov 6, 2003, 10:11 AM
Thread Re: [carfac] Globals that do not need to be globals
Jagerman 2577 Nov 6, 2003, 11:14 AM
Post Re: [Jagerman] Globals that do not need to be globals
carfac 2566 Nov 6, 2003, 11:47 AM