<div dir="ltr"><div>Dear List,<br></div><div><br></div><div>I'm posting this to qgis-dev since I got no answer on qgis-user and it's a bit technical.<br><div class="gmail_extra"><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I'm using layers joins in my projects, and need to use the memory cache for performance reasons.<br><br>This means that when I'm making changes on the joined layers, they won't appear on the base layer until the project is reloaded.<br><br>Is there a way to trigger a refresh of the joined layer cache "manually" through python ?<br><br>I looked at the API, but didn't find how to do so...<br><br>I found this class : <b>QgsVectorLayerJoinBuffer</b> which has a <b>createJoinCaches</b> method, but I couldn't find how to get a reference to it from the VectorLayer.<div><br>There's also the <b>createJoinCaches</b> method of <b>QgsVectorLayer</b>, but it seem it has no effect if the cache was already created (and that's what the docstring says as well).<br></div><div><br></div><div>If there's no way to do it, does anyone have a workaround, hopefully a bit lighter than reloading the project ?</div></div></blockquote><div> </div><div>Thanks a lot !<br><br>Olivier<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
</blockquote></div><br></div></div></div>