<div dir="ltr"><div>Hi Richard,</div><div><br></div><div>the only way I found to have that log message go away is to add manually <br></div><div><br></div><div>[cache]<br>directory=/path/to/qgis_cache_folder</div><div><br></div><div>inside QGIS3.ini wherever your QGIS server installation has created it.</div><div><br></div><div>From the QGIS Server docs it seems to me that setting "QGIS_SERVER_CACHE_DIRECTORY" in the virtual host should be enough, but it never worked for me. Maybe I'm not understanding the docs the right way.<br></div><div><br></div><div>Maybe a QGIS Server dev can shed some light here.</div><div><br></div><div>This question has been raised few times and really never got a clear answer, see for example</div><div><br></div><div><a href="https://click.pstmrk.it/3s/www.mail-archive.com%2Fqgis-developer%40lists.osgeo.org%2Fmsg52927.html/InJh/J420AQ/AQ/e672aec2-69f8-43ce-9048-38e907e1991b/1/jSBp6hhw_L">https://www.mail-archive.com/qgis-developer@lists.osgeo.org/msg52927.html</a></div><div><a href="https://click.pstmrk.it/3s/www.mail-archive.com%2Fqgis-user%40lists.osgeo.org%2Fmsg48102.html/InJh/J420AQ/AQ/e672aec2-69f8-43ce-9048-38e907e1991b/2/o3sFEoAawm">https://www.mail-archive.com/qgis-user@lists.osgeo.org/msg48102.html</a></div><div><br></div><div>cheers</div><div><br></div><div>-- G --<br>

</div><div><br></div><div><br></div><div><div class="gmail_quote"><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'm testing a QGISserver setup in which the project is cascading a WMTS <br>
(MapProxy).<br>
<br>
Performance is not so good... so I fiddled with<br>
<br>
QGIS_SERVER_CACHE_DIRECTORY=/cache<br>
and even with ??<br>
QGIS_OPTIONS_PATH=/cache<br>
<br>
where /cache is a mounted internal cache dir<br>
<br>
Is see QGISserver write all the stuff in /cache which I know from QGIS <br>
(profile dir) itself:<br>
<br>
# from within the container:<br>
# ls /cache<br>
bookmarks.xml  data8  fonts  gdal_pam  oauth2-cache  palettes  prepared  <br>
qgis-auth.db  qgis.db  symbology-style.db<br>
<br>
But I keep seeing a lot of messages in the logs:<br>
QNetworkDiskCache::prepare() unable to open temporary file<br>
QNetworkDiskCache::prepare() unable to open temporary file<br>
...<br>
<br>
So my question is, WHERE does Qt try to create the network cache...</blockquote><div><br></div><div><br></div><div> </div></div></div></div>
<img src="https://ea.pstmrk.it/open?m=v3_1.fo6d1tw5kyti7Vv8O6Z_CQ.VHS9jdQSWbFo64aLLWlDtNyUYrTBUFLBrm8efOJOHY5XgRhYnzvte0S208K0fuW5KdTcNqkERvVHEn8Zjzoi0Qhn4uLV0HHxHAQkYnuGja_dFcFRCoA5YAYEEuJdc7uXZ9-YmyqjXZYn2xfU74AuNi0emHGHIcB71QaFCS5iJalEw2egL7ij2gttkn_9FSBdwtvMRU_uyfZ4MbOLjalmI8ZhAsGKlR5gtuVfbIC_xUiygYe74Njymlgx6zs_mcy35pxWncZ7IojMyWOpQyFej1a5KIiZgRoMqy-hDKtgGAijv3D7NezAx4HJvq1qXRM8iCNasV_ffSbMlZa8q6t5vVMBoc232OXEu5J1WQGepA8iDGrkpJQ-_zQjcG-FlvNAJqcqd0Q1OOZ7-PSzC0zWcvEpEpbx0_wnr4akaNf8c1-QU4luGaEExQwqs8k6Kfx3xNsOWS-Y_d9TiHibGJuBTcB0bFBEYrqdZ-gXNcJajhzxzaUJFlpnAlcHDfeKvfX4Wdk3WPx_JnPMinfPTGZxmaoVdrnkczd38XjE8Xp3hqKw6UoL-HoN8EClVenqiY8TkHbwegf0kXZAmMmAGvouAIftNaRYQwydEqdJnJsm-YI" width="1" height="1" border="0" alt="" />