Difference between revisions of "Template Cache"

From Hostek.com Wiki
Jump to: navigation, search
(Created page with "==Clear Template Cache Fails in WCP== The 'Clear Template Cache' feature does not work in our Windows Control Panel (WCP), and seems to time out. This happens because the CF...")
 
m (Briana moved page ColdFusion Template Cache to Template Cache without leaving a redirect)
 
(No difference)

Latest revision as of 23:37, 4 September 2012

Clear Template Cache Fails in WCP

The 'Clear Template Cache' feature does not work in our Windows Control Panel (WCP), and seems to time out.

This happens because the CF script clearing the cache has to list every cfm and cfc file in the site and send them to ColdFusion to be cleared. So, if there are alot of files, it can take a long time for the 'cfdirectory' call to list them all.

Resolution

Modify the cf script that does the cache clearing and add the following code inside the 'ClearTemplateCache' function to prevent it from timing out.

<cfsetting requestTimeout="5000" />

The script to modify is located at: <cfadmin root>/CFIDE/adminapi/webservice/CFWCP.cfc