[ic] Time-build

Ed LaFrance (New Media E.M.S.) ic_users at newmediaems.com
Thu Jul 29 15:05:56 EDT 2004

At 11:20 AM 7/29/2004, you wrote:

> > Yep - in the above example it should try to write a file named after the
> > page in which the code was first called, in a subdirectory of your catalog
> > roote named 'timed'.
>Does it expand around multiple lines very well?  For example:
>[timed-build period="1 hour"]
><FORM ACTION="[area search]" METHOD="POST">
>         <INPUT TYPE="hidden" NAME="sf" VALUE="vendor">
>         <SELECT NAME="se" WIDTH="20">
>         [query sql="SELECT DISTINCT vendor FROM products ORDER BY vendor"
>           <option value="[sql-param vendor]" selected>[sql-filter
>20.][sql-param vendor][/sql-filter]</option>
>         [/query]&nbsp;<input type=submit value="Go!">
>           </SELECT>
>       </FORM>
>The above code will extract a list of unique vendor names from the products
>table.  Surrounding it as I have should mean that it only executes this code
>once an hour and extracts it from timed\whatever the rest of the time.
>Regards, Ade.

It does work well with even very large chunks of code, but be careful of 
code which changes the nature of the output based on user interaction; in 
such situations you will not get the expected results when using timed 
build. In your above example, if you wanted the selector to retain the 
user's last choice as the selected option, [timed-build] would not be a 
good idea.

- Ed

New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          Ed.LaFrance at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax

More information about the interchange-users mailing list