Re: Other Globals in %once

"Jonathan Swartz" <[email protected]>
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
If the component cache is full, it will discard components (see
http://masonhq.com/docs/manual/Admin.html#code_cache). The next time you run
the component it will be reloaded and the <%once> section will be
reexecuted.

> > However, there is a simple way to get code to run the first time the
> > component is _executed_ rather than loaded. Just do this:
> >
>
> Thanks for this example and we agree that as long as the component is in
memory
> the unless ($initialized++) {} block will not get executed again. Besides
a
> restart of Apache, what else would cause the component get removed from
memory?
> How for example would it get flushed from memory?
>
> Thanks,
> Serge
>



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.