On 12/22/06, Wan <[EMAIL PROTECTED]> wrote:
I will run myapp on mod_perl or FastCGI, but I want to know how to rewrite or reload my YAML file.for example # myapp has this line $c->config->{SomeKey} = 'SomeValue'; ..... How can save this value to my YAML file, and how can I reload this value. I don't want restart my web server. Before Catalyst I usually save the values to a file and reload the values myself. I'm a beginner of YAML and Catalyst.
Probably the best way to handle volatile configuration data would be to put those values in a database rather than in your yaml config, and use them via your database model. -- Brandon _______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
