Gossamer Forum
Quote Reply
The way a global goes?
Say we have a new global asking for all root cats and print them out on every cat_page;
then this should be done only one time when building.

Say we have an additional "if root_cat_id =cat_it then set selected=selected" in the while structure,
then i need the query for every single cat_page.

But how´s something like:

Global part: (means: do it only the first time, when called)
- Get all root_cats with name and id and save in an array
normal part
- for all key/value ask for root_id=cat_id, then change something
- print out

Say we have 1 Mio cats, we need only 1 query instead of doing it every time.