Accessibility
Adobe
Sign in My orders My Adobe

Title

ColdFusion MX 7: Using the Administrator API to clear the trusted cacheProducts affected

On the Caching page in the ColdFusion MX 7 Administrator, you can click a button to clear the trusted cache. The same functionality can be called using the new Administrator API. The following code demonstrates how to make the call to clear the trusted cache.

 <cfscript>
		
// Login is always required (if the administrator password // is enabled in the ColdFusion Administrator). // This example uses two lines of code. adminObj = createObject("component","cfide.adminapi.administrator"); adminObj.login("admin");
// Instantiate the runtime object. myObj = createObject("component","cfide.adminapi.runtime");
// clear cache myObj.clearTrustedCache();
/* Stop and restart trusted cache. However, only the clearTrustedCache function needs to be called. myObj.setCacheProperty("TrustedCache", 0); myObj.setCacheProperty("TrustedCache", 1); */
</cfscript>

Additional Information

For additional information, see the Administrator API documentation on LiveDocs.


Doc ID
(4c257834)

Last updated
2006-07-31

Products affected

Contacting Adobe Support

Still need help?
Find out about all your support options.
Contact support