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…
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/