solomon folks wrote:
Hello,
I'm looking for the best way to force Mach-II to recompile a particular page when the index.cfm indicates "MACHII_CONFIG_MODE = -1".
I tried to add a dummy parameter in the URL to force a recompile (&abcd=1234) that didn't work. Stop/Restart of the CF services is not an option...
I know fusebox has a parameter you can indicate in the URL to force that... did someone come up with a nice way to do this with Mach-II as well ??
Solomon -
The MachII_Config_Mode cause the entire mach-ii app to reload - you'll use any instance data stored in CFCs. I don't know exactly what you mean by "recompile a particular page" - I assum you mean reload the entire application.
This is what I use in my index.cfm: <SNIP>
<cfif structKeyExists(URL,"reloadApp") AND url.reloadApp EQ 1 >
<cfset MACHII_CONFIG_MODE = 1 />
<cfelse>
<!--- Set the configuration mode (when to reload): -1=never, 0=dynamic, 1=always --->
<cfset MACHII_CONFIG_MODE = 0 />
</cfif>
</SNIP>
HTH, .pjf
You might be interested in joining the Mach-II list at topica: http://lists.topica.com/lists/mach-ii-coldfusion/ As it might be a better resource for Mach-II specific questions...
-- Peter J. Farrell :: Maestro Publishing
blog :: http://blog.maestropublishing.com email :: [EMAIL PROTECTED] phone :: 651-204-0513
Old Computer programmers never die, they just decompile. --
---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
