Trusted Cache via CF Admin API

Veröffentlicht von & unter ColdFusion.

Funktion kann direkt aus einer Anwendung aufgerufen werden. Code: <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… lies mehr