Re: Where to store global settings in filter

2014-08-25 Thread Maxim Dounin
Hello! On Mon, Aug 25, 2014 at 10:55:06AM +0800, Jerry OELoo wrote: > Hi All: > I have some settings in a json file (not in nginx.conf file), > Currently, in my module filter function, I will open file, read file, > close file every time filter function is called. > I think this is not so good, s

Where to store global settings in filter

2014-08-24 Thread Jerry OELoo
Hi All: I have some settings in a json file (not in nginx.conf file), Currently, in my module filter function, I will open file, read file, close file every time filter function is called. I think this is not so good, so I think it's better call a function just one time, and save the setting in a g