|
|
|
Essentially, if you update core, then you will only be able to updateapp=1 when you are logged in as an administrator. However, if you set a key (updateappKey) in your farcryConstructor you can use that key to updateapp without being an administrator.
This is a significant change, in that 1.If your application is broken 2. AND requires an updateapp but you cant log in because your application is broke 3. AND you dont know or havnt set an updateappKey in your constructor then you will be forced to recycle CF. The only other option at this stage is to add <cfset application.binit = false /> to the OnRequestStart() in your projects application.cfc if you are unable or unwilling to recycle CF (a shared server might be such a situation) MAKE SURE YOU REMOVE IT ONCE YOUR DONE OR YOUR APPLICATION WILL SEEM QUITE SLOW ;) <cffunction name="OnRequestStart" access="public" returntype="boolean" output="true" hint="Fires at first part of page processing."> <!--- Define arguments. ---> <cfargument name="TargetPage" type="string" required="true" /> <cfset var bReturn = "" /> <!--- THIS WILL ENSURE THE UPDATEAPP IS RUN ---> <cfset application.binit = false /> <!--- Call the main farcry Application.cfc ---> <cfset bReturn = super.OnRequestStart(argumentCollection=arguments) /> <!--- Return out. ---> <cfreturn bReturn /> </cffunction> Anyones thoughts or suggestions are appreciated. |
||||||||||||||||||||||||||||||||||||||||||||
<cfset THIS.updateappKey = "my_secret_key" />