[Tilecache] updating conf without restarting web server?

Ivan Mincik ivan.mincik at gista.sk
Wed Nov 3 07:10:35 EDT 2010


On 11/03/2010 11:45 AM, manel.clos at ajgirona.cat wrote:
> Hi Sebastian,
>
> if you are running on wsgi, you can modify your script to intercept a special url like:
>
>      if environ['PATH_INFO'] == "/reload_config":
>          theService = Service.load(cfgs)
>          content = "Config reload OK"
>          start_response('200 OK',[('Content-type','text/plain'),
>                                   ('Pragma','no cache'),
>                                   ('Cache-Control','no-cache, must-revalidate')])
>          return content
> When in a normal request theService will be reused.
>
One note from my experience:
in wsgi script, You should use 'processes=1' parameter in 
WSGIDaemonProcess otherwise it will not work correctly (at least in my 
case).


-- 
Ivan Mincik, Gista s.r.o.



More information about the Tilecache mailing list