Restarting Component Cache
<cfset oService =
application.shado.serviceManager.getService("componentCache")>
<cfset oService.stop()>
<cfset
application.shado.serviceManager.registerService(service="componentCache",runAt="application",refresh=true,servicePath="shadomx.services.componentCache")>
<cfset oNull =
application.shado.serviceManager.getService(service="componentCache")>
Keeping this code here. Need to reference it occasionally. Plug it
in application.cfm to make sure componentcache restarts each time
you access a cfc or cfm in the application i am working in, e.g.,
fms. Tried "Stopping" the service through Config > service.
Didn't seem to work. Therefore this solution.
<cfset oService.stop()>
<cfset application.shado.serviceManager.registerService(service="componentCache",runAt="application",refresh=true,servicePath="shadomx.services.componentCache")>
<cfset oNull = application.shado.serviceManager.getService(service="componentCache")>
Comments
There are no comments for this page as yet.
print page
