I keep getting an error every so often related to a request variable missing 
which crashes my entire website.

I have on the application page an include for basic settings which are written 
to request scope. The query uses a request cache. If url refresh varibles are 
added it is refreshed.

Later in the page I set a variable based on one of those request settings.

Normally works fine.

But every few days when I go to the site I see only an error page with the 
error relating to setting this variable because the request variable I'm using 
is not defined.

So, I got sick of that, and above setting the varible I put this:

<cfif NOT isdefined("request.appSettings.Locale")>
        <!--- Get Settings --->
        <cfinclude template="queries/getsettings.cfm">
</cfif>

To reget them.

Well, damn it, it still happens every few days. I can't see how possible.

As soon as I refresh the cache by setting request cache to 0, it reloads fine 
again for who knows how long.

So:

1) how can this be hapenning?

2) I'm going to try setting the cach to zero just above the 2nd request but 
want to solve number one first.

Ideas?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246674
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to