Cffunction cachedwithin

this works as expected:

...

or

...

but this fails with the error: value of cachedWithin must be a literal
timespan, like 0.1 or createTimespan(1,2,3,4) or the string “request” or
the string “smart”

...

Doesn’t seem to matter what you put in variables.timeout, eg
createtimespan(0,0,0,10) or Javacast(‘double’,0.0001157); it still fails.

Can someone tell me what I’m doing wrong?

Thanks

Lucee 4.5.1.023 - Idea is to be able to put a short cachedWithin value in
some functions on dev server and longer ones in production

btw can’t find any documentation on what “smart” might mean either…

Thanks

Richard

Hey Richard,

Cachedwithin is handled at compile time. Therefore any variables are not working. Why this is how it’s working, i don’t know. I am sure Micha can shed some light.

Smart is reserved for a tool that is in the works…

What works as well is ‘request’. Which i personally use a lot…

GertSent from somewhere on the road

Am 27.09.2015 um 18:11 schrieb Richard Meredith-Hardy <@Richard_Meredith-Har>:

this works as expected:

...

or

...

but this fails with the error: value of cachedWithin must be a literal timespan, like 0.1 or createTimespan(1,2,3,4) or the string “request” or the string “smart”

...

Doesn’t seem to matter what you put in variables.timeout, eg createtimespan(0,0,0,10) or Javacast(‘double’,0.0001157); it still fails.

Can someone tell me what I’m doing wrong?

Thanks

Lucee 4.5.1.023 - Idea is to be able to put a short cachedWithin value in some functions on dev server and longer ones in production

btw can’t find any documentation on what “smart” might mean either…

Thanks

Richard

See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/b4ac19c9-87ba-4505-bd54-9412d9cfe8f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.