<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    I would prefer if this issue could be fixed within QGIS Server. I
    also have the same problem when copying projects.<br>
    <br>
    We could combine this effort with a more persistent project/layer
    cache of QGIS server, so the cache would survive Apache restarts.<br>
    <br>
    I would be available for co-financing if others would join the
    effort.<br>
    <br>
    Andreas<br>
    <br>
    <div class="moz-cite-prefix">On 09.04.2015 08:53, Nathan Woodrow
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAAi8Yg8F7b+smZcQfJFFu-GUd6ErVLPkXAV5QqNeT7J9erUjXw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hey <span
          style="font-size:13.1999998092651px;line-height:19.7999992370605px">Burghardt,<br>
        </span><br>
        As a workaround for now it's pretty easy to read the xml file
        and replace the layer ids using Python.  QGIS doesn't care about
        the format of the id as long as it's a strings so you could
        replace them all with a GUID if you wanted.
        <div><br>
        </div>
        <div>- Nathan</div>
        <div><br>
          <div class="gmail_quote">On Thu, 9 Apr 2015 at 16:46 <<a
              moz-do-not-send="true"
              href="mailto:Burghardt.Scholle@stadt.wolfsburg.de"
              target="_blank">Burghardt.Scholle@stadt.wolfsburg.de</a>>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear
              list,<br>
              <br>
              I enjoy working with templates for QGIS projects. This
              brings when working with QGIS Desktop many advantages, but
              leads to problems with the QGIS Web Client. When I save a
              project file under a different name, the id of the layer,
              unfortunately, is maintained. If I use both project files
              in the qgis-server, this creates problems with caching of
              layer. That is particularly evident when identical layer
              named differently or otherwise be symbolized.<br>
              This topic is discussed on several occasions in the past
              [1,2] and has been referred to as "bug" or "limitation".
              In [2] it's said that the combination of project name and
              layer ID could be a solution for the problem. Up to and
              including version 2.8.1, the change has not yet been
              carried out. Is there an effort to change the creation of
              the layer ID in a future release?<br>
              <br>
              Kind regards<br>
              Burghardt<br>
              <br>
              [1] <a moz-do-not-send="true"
href="http://osgeo-org.1560.x6.nabble.com/Qgis-server-returns-map-from-another-project-that-is-defined-in-URL-td5153101.html#a5153150"
                target="_blank">http://osgeo-org.1560.x6.nabble.com/Qgis-server-returns-map-from-another-project-that-is-defined-in-URL-td5153101.html#a5153150</a><br>
              [2] <a moz-do-not-send="true"
                href="http://hub.qgis.org/issues/7956" target="_blank">http://hub.qgis.org/issues/7956</a><br>
              <br>
              ***************<br>
              mailto:<a moz-do-not-send="true"
                href="mailto:burghardt.scholle@stadt.wolfsburg.de"
                target="_blank">burghardt.scholle@stadt.wolfsburg.de</a><br>
              <br>
              <br>
              _______________________________________________<br>
              Qgis-user mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
            </blockquote>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>