[Tilecache] updating conf without restarting web server?

manel.clos at ajgirona.cat manel.clos at ajgirona.cat
Wed Nov 3 06:45:27 EDT 2010


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.


________________________________
De: tilecache-bounces at lists.osgeo.org [mailto:tilecache-bounces at lists.osgeo.org] En nombre de Sebastian E. Ovide
Enviado el: miércoles, 03 de noviembre de 2010 11:12
Para: tilecache at openlayers.org
Asunto: [Tilecache] updating conf without restarting web server?

is there any way to change tilecache conf without the need to restart the webserver ?

thanks

--
Sebastian E. Ovide



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20101103/76fd1370/attachment.html


More information about the Tilecache mailing list