i do it this way:

<cfset mycachetime = "#createtimespan(0,2,0,0)#">

<cfquery .... cachedwithin="#mycachetime#">

which works, also allows me to expire queries by setting mycachetime
to createtimespan(0,0,0,-1)

jb.

On Tue, 3 Aug 2004 09:02:22 +0100, Andy J <[EMAIL PROTECTED]> wrote:
> Is this a bug, or is there a perfectly good explanation why the following
> returns an error and cause its late I'm not seeing it:
>
> <cfscript>
>         myTimeSpan = "0,0,2,0";
>         writeOutput(createTimeSpan(myTimeSpan));
> </cfscript>
>
> Message returned:
> Parameter validation error for function CREATETIMESPAN.
> The function takes 4 parameters.
>
> Any help appreciated
>
> Andy J
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to