I have a little problem....I cannot delete a single cached page using
cfcache action="flush".

Environment: Win2K Server/CF5/Spectra 1.5

I Create a cache file using the following code (this works perfectly,
#request.app.pathreal# is a variable set in application.cfm):

    <cfcache timeout="#dateAdd("m", "-60", now())#"
cachedirectory="#request.app.pathreal#_cache\">

This creates a .tmp file and a .map file, as expected.

If I try to delete that specific cached file, it doesn't work; this is the
code for the simple tool I built:

<cfif isDefined("FORM.submit")>
<cfcache action="FLUSH" directory="#request.app.pathreal#_cache\"
expireurl="#FORM.URL#">
<cfoutput>#FORM.url#</cfoutput> has been flushed.
<cfelse>
<form action="clearcache.cfm" method="post">
<input type="text" name="url"> <input type="submit" name="submit"
value="Submit">
</form>
</cfif>

The idea is that you put the desired URL in the text box; I also tried
another method that just hardcoded the desired file on that page and it
didn't work either.

However, I _CAN_ clear ALL of the cached pages using this code:

<cfcache action="FLUSH" directory="#request.app.pathreal#_cache\"
expireurl="*">
Has anyone else had similar difficulties trying to delete a single cached
page?
Thanks for any help/insight...
Pete



FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to