I have a question about a behavior that I am seeing with <cfcache> and
trusted cache.  I am running CF5 on Win2K and have trusted cache enabled.

Here is the code I used.

<cfcache
        action="cache"
        timeout="#DateAdd("m", -60, Now())#">

<p>This page was created at:<br>
<cfoutput>#TimeFormat(Now(), "h:mm:ss tt")#</cfoutput><br>
Hi Keen
</p>

Here is the output

This page was created at:
9:59:47 AM
Hi Keen

If I hit refresh I continue to see the above output, which is what I expect.
However if I change the code, in this case delete the line "Hi Keen" the
function in the template is refreshed but the rest of the template appears
to return what is in cache.  The following is the code after the change:

<cfcache
        action="cache"
        timeout="#DateAdd("m", -60, Now())#">

<p>This page was created at:<br>
<cfoutput>#TimeFormat(Now(), "h:mm:ss tt")#</cfoutput><br>
</p>

Here is the output

This page was created at:
10:03:10 AM
Hi Keen

As you can see the "static code" has not changed but the function updated.
The function only updates after the code has been changed any other calls to
the template return the cached version as expected.  My question is  why
does the function update?  According to the CF documentation, "Trusted
cache - when checked, any requested files found to currently reside in the
template cache will not be inspected for potential updates."

Can anyone explain this?
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to