<cfscript>
if (isDefined("url.clearTrustedCache")) {
clearTrustedCache();
}
function clearTrustedCache() {
adminObj = createObject("component","cfide.adminapi.administrator");
adminObj.login("admin");
runtimeObj = createObject("component","cfide.adminapi.runtime");
runtimeObj.clearTrustedCache();
}
</cfscript>
我正在尝试使用上面的代码通过 URL 参数清除受信任的缓存。我收到以下错误消息:
The current user is not authorized to invoke this method
我在网上找到的唯一尝试是http://helpx.adobe.com/coldfusion/kb/error-current-user-authorized-invoke.html但它不起作用(除非我做错了)。
关于如何解决这个问题的任何想法或想法?