What would be reasoning behind such a whacked method? Surely developers
will always know how long the cache is to live for (ie, 30mins), rather than
this expiry timestamp thing... From a useability point of view, specifying
the timeout period is much easier. Functionally, whether the conversion
function is insde or outside of the tag should be of little consequence.
Nathan Wheat
Technical Sales Consultant
Firmware Design
Phone: 0401 148 989
Email: [EMAIL PROTECTED]
http://www.firmware.com.au
Are you a Web Developer or Designer?
Looking for an edge? If so, check out Web Design 2001
Go to the link Below to find out more & register
<http://wd2001.firmware.com.au/ft>
-----Original Message-----
From: Aaron Shurmer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 7 August 2001 12:20 PM
To: Spectra-Talk
Subject: RE: Caching
ok. lets see if i can't explain this better.
|---------------|---------------|
12:30 1pm 1:30
take the timeline and a cache timeout of 30 mins. when the cache is created,
the cache sets it timestamp to now() (lets say 1pm). and you set
dtcachetimeout to now() - half an hour (which would be 12:30). basically,
what happens is, when that now() - half an hour = the original now() of when
the cache was created, it gets flushed. i.e. when the time reaches 1:30,
now() - half an hour = 1pm, which is the original cache timestamp, the cache
will flush and rebuild.
to set it to a 30 min timeout for dtCachetimeout, you can do something like
<cfset dtCachetimeout = dateadd("n", -30, now())>
hope that's clearer.
Cheers,
Aaron.
/****************************************
Aaron Shurmer
Senior Developer
Daemon Internet Consultants
ph +61 (0) 2 9380 4162
http://www.daemon.com.au/
engineered.innovation
****************************************/
-----Original Message-----
From: Stephen Collins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 7 August 2001 11:29 AM
To: Spectra-Talk
Subject: RE: Caching
Now I'm MORE confused...
Steve
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.