[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Time-build


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"
list=1]
          <option value="[sql-param vendor]" selected>[sql-filter
20.][sql-param vendor][/sql-filter]</option>
        [/query]&nbsp;<input type=submit value="Go!">
          </SELECT>
      </FORM>
[/timed-build]


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.
Correct?

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          suppressed
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax
===============================================================
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.