You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Perrin Harkins <pe...@elem.com> on 2003/11/27 00:01:22 UTC
Re: Updating 'constant' datastructures in MP2
> hup it as in graceful restart? But I don't need it to re-read all of
> my Perl modules, plus their inherent initializations... I just need
> e.g. a hash updated...
I agree with Stas -- it would be easier to use something like a dbm.
MLDB::Sync works well for this stuff.
When I've had to do this in the past, I've typically just used last
modtime check on some file as a form of notification, and have children
update their data as necessary. This has the advantage of being easy, but
the disadvantage that the data is no longer shared. I don't think you can
reall solve that without HUP-ing the server, but if you find a way I'll be
eager to hear about it.
- Perrin
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Updating 'constant' datastructures in MP2
Posted by Elizabeth Mattijsen <li...@dijkmat.nl>.
At 18:01 -0500 11/26/03, Perrin Harkins wrote:
>...This has the advantage of being easy, but
>the disadvantage that the data is no longer shared. I don't think you can
>reall solve that without HUP-ing the server, but if you find a way I'll be
>eager to hear about it.
Will report back, probably in the form of an Apache:: module
proposal, if I can get this idea off the ground...
Liz
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html