gsr
06/07/2024, 12:20 PMAdam Cameron
gsr
06/07/2024, 12:28 PMEvil Ware
06/07/2024, 12:29 PMgsr
06/07/2024, 12:34 PMEvil Ware
06/07/2024, 12:43 PMAdam Cameron
onApplicationStart
, which sounds very Application.cfc-ish and they know yer on Application.cfm.
But their code - if unhelpfully formatted - kinda explains it. Stick that in yer Application.cfm.ifedotov
06/07/2024, 3:22 PMAdam Cameron
applicationStop
. The next request will start the application again.
Simply "recreating stuff in the application scope" is not the same as restarting the application.
Don't expose that end point publicly though, obvs!Evil Ware
06/07/2024, 3:43 PMgsr
06/11/2024, 12:44 PMgavinbaumanis
06/12/2024, 5:34 AMifedotov
06/13/2024, 4:34 PMapplicationStop()
as suggested above.
Then on the next request (maybe same request if it’s above the condiiton) your condition if (not isdefined('application.objectdeclared'))
will be true
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b/applicationstop.htmlgsr
06/13/2024, 4:49 PMAdam Cameron