Re: Trying to optimize some code

2005-02-24 Thread Adrocknaphobia
I'd try and cache the menu, and use to URL var to specify a different stylesheet for the colors. -Adam On Thu, 24 Feb 2005 12:45:54 -0500, CFDEV [EMAIL PROTECTED] wrote: Hi all, I have an include for a dynamic side menu and there is a lot of data in the menus. There is 3 level of menus and

Re: Trying to optimize some code

2005-02-24 Thread Jochem van Dieten
CFDEV wrote: I have an include for a dynamic side menu and there is a lot of data in the menus. There is 3 level of menus and hte guy who programmed it made loops inside of loops with different queries. I'm looking for a way to optimize this since it's taking 1000 ms to load. I looked

RE: Trying to optimize some code

2005-02-24 Thread CFDEV
Well the color is to highlight the menu for which page we are in at the moment and this is determined by a url variable... Pat -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: February 24, 2005 13:07 To: CF-Talk Subject: Re: Trying to optimize some code CFDEV

Re: Trying to optimize some code

2005-02-24 Thread Claude Schneegans
Any ideas? I use only one query, one loop on the query with grouping, and a recursive Custom Tag. Pretty fast indeed, but not really trivial. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any

Re: Trying to optimize some code

2005-02-24 Thread Jochem van Dieten
CFDEV wrote: Well the color is to highlight the menu for which page we are in at the moment and this is determined by a url variable... That is no problem. Consider the folowing menu: cfoutput style type=text/css ul.menu li.#url.page# {background-color: navy;} /style /cfoutput ul id=menu