Template Cache

From Hostek.com Wiki
Revision as of 18:23, 4 September 2012 by Jonc (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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