Skip to main content
March 8, 2011
Question

sometimes application variables don't reset

  • March 8, 2011
  • 1 reply
  • 2247 views

In our application.cfm, many queries are run and set to arrays that are application scope. They are for code tables. To keep all this from happenning each time a template runs, there is a server scope variable that is set to true from another program and in application.cfm, there is something like <cfif the server variable is true> run queries,assign arrays,set server variable to false  </cfif>.

When a new code is added to a code table, we set the server variable to true and the next template that runs resets all the application variables and the new code is in one of them.

Sometimes this doesn't work. Only some of the arrays get reset and the others are empty. The arrays are there but have no elements.

Repeating the process 2 to 4 times seems to make it work.

What can cause it not to work the first time ?

This topic has been closed for replies.

1 reply

Inspiring
March 8, 2011

It pretty much impossible to say, without seeing the relevant code.

--

Adam

March 8, 2011

Ok. I hope to make a short version of our application.cfm and the resetting program and put them here tomorrow.