this issue has pissed me off for the last time. do me a favor and try
out this code, just paste above the $runOnRequestStart() replacing the
onRequestStart() method:
<cffunction name="onRequestStart" returntype="void" access="public"
output="false">
<cfargument name="targetPage" type="any" required="true">
<cfscript>
// abort if called from incorrect file
$abortInvalidRequest();
if($shouldReloadWheels())
{
$simpleLock(execute="$reloadingWheels", name="wheelsReloadLock",
type="exclusive", timeout=180);
}
// run the rest of the request start code
$simpleLock(execute="$runOnRequestStart", executeArgs=arguments,
name="wheelsReloadLock", type="readOnly", timeout=180);
</cfscript>
</cffunction>
<cffunction name="$shouldReloadWheels" returntype="boolean"
access="public" output="false">
<cfscript>
if(
!StructKeyExists(application, "wheels")
|| (
StructKeyExists(URL, "reload")
&& (!StructKeyExists(application, "wheels")
|| !StructKeyExists(application.wheels, "reloadPassword")
|| !Len(application.wheels.reloadPassword)
|| (StructKeyExists(URL, "password") && URL.password ==
application.wheels.reloadPassword))
)
)
{
return true;
}
return false;
</cfscript>
</cffunction>
<cffunction name="$reloadingWheels" returntype="void" access="public"
output="false">
<cfscript>
if (StructKeyExists(URL, "reload"))
{
// need to setup the wheels struct up here since it's used to store
debugging info below if this is a reload request
$initializeRequestScope();
$debugPoint("total,reload");
}
onApplicationStart();
</cfscript>
</cffunction>
On Oct 6, 4:09 am, William Fisk <
william.f...@gmail.com> wrote:
> This has been discussed before here<
http://A%20timeout%20occurred%20while%20attempting%20to%20lock%20whee...>,