in reply to Config parsing module for mod_perl app?
If you do want to switch to something new, don't bother looking for a config parser that will watch for changes: there are none. Find one that supports a syntax you like, and then add the mod_perl specific stuff yourself.
All you need to do is put in a cleanup handler that will stat the config file and then call your config parser again if it changes. You can keep track of the last time you read it in a global variable. If you don't want to stat every time, you can keep track of the last time you did a stat, and only stat again if it's five minutes later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Config parsing module for mod_perl app?
by jehuni (Pilgrim) on Mar 27, 2002 at 18:42 UTC | |
by perrin (Chancellor) on Mar 27, 2002 at 19:10 UTC |