Caching a value for the lifetime of a module: CLUELESS

2005-03-08 Thread luca regini
My understanding about per server conf is that any structure allocated in the server config handler should have a lifetime that is the same as the one of the module. So the server config structure should be an ideal place for caching values. Anyway in the following simple module the dbg counter is

Re: Caching a value for the lifetime of a module: CLUELESS

2005-03-08 Thread luca regini
That's exactly what happens and i learnt it the hard way :). Now my next question is: is there any ideal place provided by the apache API to allocate a shared memory object? Is there any source code example of such a use case? Thanks. Luca On Tue, 8 Mar 2005 10:11:57 -0500 (EST), Cliff Woolley

Re: [apache-modules] Caching a value for the lifetime of a module: CLUELESS

2005-03-08 Thread P. Asokan
Which operating system you are using? If you are using unix os, this problem may be due to the prefork process which will be created to serve for each connection. In that case you may have to use shared memory... Regards, Asok My understanding about per server conf is that any structure