Welcome Guest, Not a member yet? Register   Sign In
Application scope variables
#1

[eluser]MarvinLeRouge[/eluser]
Hi,

I'd like to create application scope variables, so that any user of the application could have access to the same variables. Plus it would allow me to update those variables every time interval i choose, just one time for everyone : less sql queries, less computing, more speed.
It's for an ACL, and since the rights are already defined, and rarely changed, i just need to invalidate the data when there's change.

Any idea ?

Thanks
#2

[eluser]InsiteFX[/eluser]
MY_Controller
#3

[eluser]ivantcholakov[/eluser]
http://ellislab.com/forums/viewthread/241311/
#4

[eluser]MarvinLeRouge[/eluser]
I'm not sure at all that MY_Controller is what i'm looking for.
If i understand correctly, it would mean that all of my controllers would have the functions implied; but they would all make the requests nevertheless.
What i want is to have an ACL class, that would be accessible anywhere (which is ok with a hook, i think), but which would not make sql requests on every page for every user. I'd like to get the information from the database, and then have it available for all the users of the application.




Theme © iAndrew 2016 - Forum software by © MyBB