Template Cache

From Hostek.com Wiki
Jump to: navigation, search

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.


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