• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Problems with <cfcache>

New Here ,
Jul 12, 2006 Jul 12, 2006

Copy link to clipboard

Copied

Hi there. I cached a page (client side) and the the following code is not flushing the cache.

<cfcache timeout="#createtimespan(-1,0,0,0)#" action="clientcache">
<cfcache action="flush">

I had the following script to either cache or flush the script and that didn't work either. No errors were thrown, it just cached it the first time and didn't uncache it after the session var was changed to 1. here is the code

<cfparam name="SESSION.clearCacheLink" default="0">
<cfif SESSION.clearCacheLink>
<cfcache timespan="#createtimespan(-1,0,0,0)#">
<cflock scope="session" timeout="10">
<cfset SESSION.clearCacheLink = 0>
</cflock>
<cfelse>
<cfcache action="clientcache" timeout="#createtimespan(0,1,0,0)#">
</cfif>
TOPICS
Advanced techniques

Views

224

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 12, 2006 Jul 12, 2006

Copy link to clipboard

Copied

Have you tired using CFFLUSH instead of CFCACHE for the flushing part?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 12, 2006 Jul 12, 2006

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation