Skip to content

Instantly share code, notes, and snippets.

@misterdai
Created July 1, 2010 12:24
Show Gist options
  • Save misterdai/459891 to your computer and use it in GitHub Desktop.
Save misterdai/459891 to your computer and use it in GitHub Desktop.
Flag the application to run onApplicationStart
<cffunction name="ApplicationRestart" returntype="boolean" output="false">
<cfif IsDefined('application')>
<cftry>
<!--- This is just in case there's no app scope but variables.application --->
<cfset application.setIsInited(false) />
<cfreturn true />
<cfcatch type="any"></cfcatch>
</cftry>
</cfif>
<cfthrow message="No application scope found." />
</cffunction>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment