Marc Murphy wrote:
Once you use a configuration directive to store some values in a module's configuration table, is there any way to change them after that?

When there is a request I grab the values I initally stored in the configuration table (which I believe are stored only once when httpd starts and the configuration directive is encountered)
I grab the values using $cfg= $r->Apache::ModuleConfig($r, Modulename).
per-directory configuration directives are run (at least) once per request, so it really depends on the placement of your directives. see the diagram in the introduction to part III in the cookbook for some details.

http://www.modperlcookbook.org/chapters/part3.pdf


Now if I make some changes
i.e. $cfg->{key}=newvalue
that's fine for the request currently going on. Then for the next request the newvalue is replaced by the initial value. Is this how it's supposed to work...i.e. the way you setup the module's config table is permanent?
yes.  it's exactly like you made the entry in httpd.conf.

Can I get the change to stick somehow?
not that I'm aware of at the moment.

HTH

--Geoff



Reply via email to