Skip to main content
Participant
March 26, 2008
Question

300 requests per hour reading from Application scope Good/Bad idea

  • March 26, 2008
  • 1 reply
  • 253 views
I am saving some html in application scope & reading with <cflock readonly.
Will it be a problem if more than 5 requests are made per second?
Does deadlocks occurs with readonly-cflock?
Thanks
This topic has been closed for replies.

1 reply

Participating Frequently
March 27, 2008
While creating/changing application scope variables in a lock, I think there must be an exclusive lock. You must be careful not to set any shared variable such as application inside a read only cflock tag.

I also would suggest to check the usage of Application.cfc and onApplicationStart method. You can set application default variables and constants in onApplicationStart method in your Application.cfc.