[Geoserver-users] Clearing image cache

Hi,
I have a map style that uses an image to tile its polygons:
<PolygonSymbolizer>
  <Fill>
    <GraphicFill>
      <Graphic>
        <ExternalGraphic>
          <OnlineResource xlink:type="simple" xlink:href="Background.png"/>
          <Format>image/png</Format>
        </ExternalGraphic>
      </Graphic>
    </GraphicFill>
  </Fill>
  <Stroke>
    <CssParameter name="stroke">#999999</CssParameter>
    <CssParameter name="stroke-width">1</CssParameter></Stroke>
</PolygonSymbolizer>

This works fine but when I attempt to alter the Background.png image the map
doesnt update. However if I change the sld to point to a different image the
map does update. Is there anyway of clearing the image cache so that my map
picks up the new version of Background.png? It gets cleared when the server
shuts down but I need the server to stay up.
--
View this message in context: http://www.nabble.com/Clearing-image-cache-tp23329756p23329756.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

dk80 ha scritto:

Hi,
I have a map style that uses an image to tile its polygons:
<PolygonSymbolizer>
  <Fill>
    <GraphicFill>
      <Graphic>
        <ExternalGraphic>
          <OnlineResource xlink:type="simple" xlink:href="Background.png"/>
          <Format>image/png</Format>
        </ExternalGraphic>
      </Graphic>
    </GraphicFill>
  </Fill>
  <Stroke>
    <CssParameter name="stroke">#999999</CssParameter>
    <CssParameter name="stroke-width">1</CssParameter></Stroke>
</PolygonSymbolizer>

This works fine but when I attempt to alter the Background.png image the map
doesnt update. However if I change the sld to point to a different image the
map does update. Is there anyway of clearing the image cache so that my map
picks up the new version of Background.png? It gets cleared when the server
shuts down but I need the server to stay up.

No way unfortunately, as you say, the cache lasts forever as long as
GeoServer is running. It has been reported quite some time ago:
http://jira.codehaus.org/browse/GEOS-856
and I still haven't got around to fix it.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.