<p dir="ltr">My guess is the underlying problem is the TEMPLATES are being 'rendered' too often.  This is likely because you are referencing the same data in multiple layers but using classes to filter what each layer renders to the map.  Try putting the TEMPLATE statements in those classes so what is rendered to the TEMPLATE is similarly filtered.  (Otherwise MapServer will use all of the data, unfiltered, for the TEMPLATE and every item will be rendered multiple times).</p>
<div class="gmail_quote">On Feb 20, 2015 8:25 AM,  <<a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>Thank you for your answer, Dan!
<div>
<div> </div>

<div>I have already tested the grouping functionality. Is it right that either no layer can be selected or no? For my requirements also individual layers should be selected.</div>

<div> </div>

<div>Greetings, Geograefin</div>

<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0 10px 10px;border-left:2px solid #c3d9e5;word-wrap:break-word">
<div style="margin:0 0 10px 0"><b>Gesendet:</b> Donnerstag, 19. Februar 2015 um 23:37 Uhr<br>
<b>Von:</b> "Dan Little" <<a href="mailto:theduckylittle@gmail.com" target="_blank">theduckylittle@gmail.com</a>><br>
<b>An:</b> <a href="mailto:geo.graefin@web.de" target="_blank">geo.graefin@web.de</a><br>
<b>Cc:</b> "GeoMOOSE Users List" <<a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a>><br>
<b>Betreff:</b> Re: [Geomoose-users] multiple rendering</div>

<div name="quoted-content">The easy "cheat" with MapServer is to make them all apart of the same<br>
group. Then change the individual references in GeoMOOSE to reference<br>
the name of the group instead.<br>
<br>
On Mon, Feb 9, 2015 at 3:46 AM, <<a href="mailto:geo.graefin@web.de" target="_blank">geo.graefin@web.de</a>> wrote:<br>
> Hello,<br>
><br>
> I have three layer sections in my mapfile and want to query their<br>
> informations via the popup service and identify service. When I click on a<br>
> feature in the map the information is displayed on three occasions, both in<br>
> the pop-up window as well as the identification service. I have set the<br>
> templates for each layer individually:<br>
><br>
> MAP<br>
> ...<br>
> LAYER #first layer<br>
> NAME 'campingplatz'<br>
> ...<br>
> METADATA<br>
> WMS_TITLE "campingplatz"<br>
> #identify<br>
> 'identify_record' 'templates_unterkunft/identify.html'<br>
> END<br>
> PROJECTION<br>
> 'init=epsg:4326' #projection of the layer<br>
> END<br>
> CLASS<br>
> NAME unsercampingplatz<br>
> EXPRESSION ("[kategorie]" = 'Campingplatz')<br>
> STYLE<br>
> SYMBOL "../img/haus-11-kl.png"<br>
> SIZE 20<br>
> END<br>
> END<br>
> TEMPLATE "unterkunft_popup.html" # this is required for WMS<br>
> popups<br>
> TOLERANCE 5000<br>
> TOLERANCEUNITS METERS<br>
> END #end of first layer<br>
> LAYER #second layer<br>
> NAME 'ferienhaus'<br>
> ...<br>
> METADATA<br>
> WMS_TITLE "ferienhaus"<br>
> #identify<br>
> 'identify_record' 'templates_unterkunft/identify.html'<br>
> END<br>
> PROJECTION<br>
> 'init=epsg:4326' #projection of the layer<br>
> END<br>
> CLASS<br>
> NAME unserferienhaus<br>
> EXPRESSION ("[kategorie]" = 'Ferienhaus')<br>
> STYLE<br>
> SYMBOL "../img/haus-10-kl.png"<br>
> SIZE 20<br>
> END<br>
> END<br>
> TEMPLATE "unterkunft_popup.html" # this is required for WMS<br>
> popups<br>
> TOLERANCE 5000<br>
> TOLERANCEUNITS METERS<br>
> END #end of second layer<br>
> LAYER #third layer<br>
> NAME 'hotel'<br>
> ...<br>
> METADATA<br>
> WMS_TITLE "hotel"<br>
> #identify<br>
> 'identify_record' 'templates_unterkunft/identify.html'<br>
> END<br>
> PROJECTION<br>
> 'init=epsg:4326' #projection of the layer<br>
> END<br>
> CLASS<br>
> NAME unserhotel<br>
> EXPRESSION ("[kategorie]" = 'Hotel')<br>
> STYLE<br>
> SYMBOL "../img/haus-1-kl.png"<br>
> SIZE 20<br>
> END<br>
> END<br>
> TEMPLATE "unterkunft_popup.html" # this is required for WMS<br>
> popups<br>
> TOLERANCE 5000<br>
> TOLERANCEUNITS METERS<br>
> END #end of third layer<br>
> END #end of map<br>
><br>
> What is the reason for this multiple rendering, which is obviously in<br>
> connection with the number of the layer?<br>
><br>
> Thank you in advance for your help or ideas!<br>
><br>
> Greetings, Geograefin<br>
><br>
> _______________________________________________<br>
> Geomoose-users mailing list<br>
> <a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a></div>
</div>
</div>
</div></div></div>
<br>_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br></blockquote></div>