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.

Reply via email to