tracker issue : CF-4199613

select a category, or use search below
(searches all categories and all time range)
Title:

Clear folder specific template cache doesn't work on CF2016 Update 4

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/PRNeedInfo

Reporter/Name(from Bugbase): Edward Ho / Edward Ho ()

Created: 09/06/2017

Components: Administrator, Admin API

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: 2016.0.04.302561 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 0

Problem Description:  With Trusted cache turned on, we are unable to clear "folder specific template cache".  So we are forced to clear all template cache for the entire instance even if we change a few pages for a hotfix.

Steps to Reproduce:  Turn trusted cache on and run "Clear folder specific template cache"

Actual Result:  Template cache for the folder isn't cleared.

Expected Result:  Template cache for the folder is cleared

Any Workarounds:  Clear cache for the entire instance via "Clear Template Cache Now"

Attachments:

Comments:

Hello Edward I am able to clear the template using "Clear folder specific template cache" on CF 2016 update 4. Could you please share a small code snippets with steps to repro your case. From my side I verified this: 1)"Trusted cache" is checked in on CF admin 2)Run the template twice. It pulled the cached data second time 3)Modified the template. runt he template. It did not pulled the modified content because trusted cache is on. 4)clear the cache data using "Clear folder specific template cache" via admin. 5)run the template again. Ican see the modification part done in step 3. "Clear folder specific template cache" works fine for me when trusted cache in on. Is there anything else I am missing here?
Comment by Poonam J.
374 | September 13, 2017 06:13:54 AM GMT
Hi Poonam, Here is a simple test.cfm page that we used: <cfset theInetAddress = createObject("java", "java.net.InetAddress")> <cfset request.machineName = theInetAddress.localhost.getHostName()> <cfoutput> SERVER: #request.machineName# </cfoutput><br><br> Change made on 9/10/17 at 11:00am Trusted Cache is turned on, and page test.cfm loads and returns "Change made on 9/10/17 at 11:00am" We edited the page and changed time to "12:00am" Reloaded the page in browser to see expected "Change made on 9/10/17 at 11:00am" cached page. Log into CF Admin, choose folder on local machine, and "Clear Template Cache of Specific Folder". Reloaded the page in browser and cached pages shows "Change made on 9/10/17 at 11:00am". Clicked on "Clear Template Cache Now" instead Reloaded the page in browser and updated pages shows "Change made on 9/10/17 at 12:00am". So "Clear Template Cache Now" works, while "Clear Template Cache of Specific Folder" didn't work for us. Thanks for getting back!
Comment by Edward H.
375 | September 13, 2017 05:13:04 PM GMT
Hello Edwin, I tried the steps you shared and "Clear Template Cache of Specific Folder" worked for me. I checked the CF version which is update 4. At 5th step, I can see the changed time.I am not able to repro the case. 1)Can you check at your end if any other settings is not allowing you to clear folder specific template cache? 2) Can you share the caching page settings of CF admin , if possible. 3)OR Is it possible for you to update CF to update 5 available, and see this issue still exists. Thanks Poonam
Comment by Poonam J.
376 | September 14, 2017 04:48:08 AM GMT
Hello Edwin, I tried the steps you shared and "Clear Template Cache of Specific Folder" worked for me. I checked the CF version which is update 4. At 5th step, I can see the changed time.I am not able to repro the case. 1)Can you check at your end if any other settings is not allowing you to clear folder specific template cache? 2) Can you share the caching page settings of CF admin , if possible. 3)OR Is it possible for you to update CF to update 5 available, and see this issue still exists. Thanks Poonam
Comment by Poonam J.
377 | September 15, 2017 04:14:32 AM GMT
Hello Edward , any update on this?
Comment by Poonam J.
378 | September 18, 2017 08:56:42 AM GMT