<div dir="ltr"><div><div><div>Hi Niklaas,<br><br></div>Hmm. It should be invalidating the related cache entries to the project, when the project file has changed:<br><a href="https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsconfigcache.cpp#L36">https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsconfigcache.cpp#L36</a><br>
<br></div>Seems like just refreshing your browser after each project file save should do the trick. You may have to close the project file in QGIS Desktop, or your file editor, if editing it by hand. Some of this may not work on every platform.<br>
<br></div>If that fails, it should be reported as an issue. In the meantime...<br><div><div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Since you are running Nginx already, you can spawn the qgis_mapserv.fcgi process independently and use Nginx's fastcgi_module [0] to pass the request on to your spawned process. This allows you to specifically re-start the qgis_mapserv process without affecting any other web server process. Restarting the process should invalidate its cache and re-parse your project file. However, the project refresh noted above may just work anyway, when using spawn-fcgi (untested).<br>
<br></div><div class="gmail_extra">You can use various tools to spawn the qgis_mapserv process, but I prefer either spawn-fcgi [1] or uWSGI [2]. spawn-fcgi is the simplest to integrate; here is an example [3].<br><br></div>
<div class="gmail_extra">The user/group you run spawn-fcgi under will need access to the QGIS project file (and data directories, if any) that you specify with the MAP request parameter.<br></div><div class="gmail_extra">
<br>[0] <a href="http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html">http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html</a><br></div><div class="gmail_extra">[1] <a href="http://redmine.lighttpd.net/projects/spawn-fcgi/wiki/WikiStart">http://redmine.lighttpd.net/projects/spawn-fcgi/wiki/WikiStart</a><br>
[2] <a href="http://projects.unbit.it/uwsgi/">http://projects.unbit.it/uwsgi/</a><br>[3] <a href="http://wiki.habariproject.org/en/Installation_using_Nginx">http://wiki.habariproject.org/en/Installation_using_Nginx</a><br>
<br></div><div class="gmail_extra">Regards,<br clear="all"></div><div class="gmail_extra"><div><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota</div>
<br><br><div class="gmail_quote">On Sat, Jul 5, 2014 at 2:43 PM, Niklaas Baudet von Gersdorff <span dir="ltr"><<a href="mailto:niklaas@kulturflatrate.net" target="_blank">niklaas@kulturflatrate.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I am wondering, whether there is an elegant way of configuring the<br>
qgis-web-client in a way that it is refreshing (or regenerating) the images of a project file on /every/ attempt displaying the corresponding project file. This would make testing or experimenting with the desktop and web application much much easier. I have already been asking this question at [1] but got the answer that I shall try restarting Apache2. In fact, this works (I can see the changes I made to a file after an update) but, in my opinion, this is not an<br>

elegant solution.<br>
<br>
    1: <a href="http://gis.stackexchange.com/q/78423/19375" target="_blank">http://gis.stackexchange.com/<u></u>q/78423/19375</a><br>
<br>
I have also already asked at the IRC channel but haven't had any luck. I also did a web search but neither found a solution. I also had a look at the documentation of mod_fcgid at [2] but did not find anything promising unfortunately. My understanding of Apache2 (and mod_fcgid) is also quite limited.<br>

<br>
    2: <a href="http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html" target="_blank">http://httpd.apache.org/mod_<u></u>fcgid/mod/mod_fcgid.html</a><br>
<br>
Can anybody think of a setting in the configuration of Apache2 (or<br>
qgis-web-client) that changes the behaviour of 'caching' or 'buffering' (if it is called that way) to not 'cache' or 'buffer' anything at all?<br>
<br>
Maybe it is worth mentioning that our Server is running NGINX primarily. So I configured a proxy that is forwarding everything to the Apache2 server listening at 8008. (I am also wondering whether NGINX is caching something and I need to change anything there but since it is configured acting as a proxy I would suggest that it's not NGINX caching anything at all. Since restarting Apache2 leads to refreshing of the generated images I am quite sure that it's Apache2 and not NGINX buffering anything.)<br>

<br>
Any help is very much appreciated.<br>
<br>
All the best,<span class=""><font color="#888888"><br>
<br>
-- <br>
Niklaas Baudet von Gersdorff<br>
<a href="mailto:niklaas@kulturflatrate.net" target="_blank">niklaas@kulturflatrate.net</a><br>
______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
</font></span></blockquote></div><br></div></div></div></div></div></div>