On Mon, Jun 15, 2015, at 06:20 PM, Damon Courtney wrote:
> I’m with Massimo. I guess I don’t understand what you’re trying to do. I
> use globals all the time (and I know others do too), but it’s something
> like this:
>
> if {![info exists ::some_global_info]} {
> set ::some_global_info [load_global_info]
> }
>
> What that does is load some settings or information from file into the
> global scope, but it only loads it once when the child is first created
> or used. It loads the data, and from there on out, the global data exists
> and so doesn’t need to load again. It could just as easily from a DB or
> anywhere.
>
> This is a pretty common technique for saving resources. Load the info
> once, on startup, and then never load it again. Of course, it means
> you’ll have to restart the server if you want to load new data, but it’s
> still way more efficient than fetching data on every request.
>
> D
That is fine when you want to just load global static data.
My objective is to have global variables, that is, they can vary
For now I've achieved this setting prefork values to 1 and running
"httpd -X".
<i>Always striving to honor my word and commitments</i>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]