Hi together
I try to cache my data with Geowebcache. The only problem I have is, that I
try to set the cache expiry tag, but it doesn't work. I set it to 120 for
testing purposes. Am I right that it should now regenerate the tiles every
120 seconds?
This is the logsnippet when I reload the gwc configuration:
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.1 to 1.0.2
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Updating configuration from
1.0.2 to 1.1.0
01 Jun 14:14:10 INFO [util.XMLConfiguration] - cvc-complex-type.2.4.a:
Invalid content was found starting with element 'version'. One of
'{"http://geowebcache.org/schema/1.1.0":version,
"http://geowebcache.org/schema/1.1.0":backendTimeout,
"http://geowebcache.org/schema/1.1.0":cacheBypassAllowed,
"http://geowebcache.org/schema/1.1.0":layers\}' is expected.
01 Jun 14:14:10 INFO [util.XMLConfiguration] - Will try to use configuration
anyway.
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding layers from
/data/geoserver/gwc
01 Jun 14:14:10 INFO [layer.TileLayerDispatcher] - Adding: osm_cache
01 Jun 14:14:10 INFO [reload.ReloadRestlet] - Configuration reloaded. Read
13 layers from configuration resources.
Here is my geowebcache.xml:
<?xml version="1.0" encoding="utf-8"?>
<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://geowebcache.org/schema/1.0.1/geowebcac
he.xsd"
xmlns="http://geowebcache.org/schema/1.0.1">
<version>1.0.1</version>
<backendTimeout>120</backendTimeout>
<cacheBypassAllowed>true</cacheBypassAllowed>
<layers>
<wmsLayer>
<name>osm_cache</name>
<mimeFormats>
<string>image/png</string>
</mimeFormats>
<grids>
<entry>
<srs>
<number>900913</number>
</srs>
<grid>
<srs>
<number>900913</number>
</srs>
<dataBounds>
<coords>
<double>-2.003750834E7</double>
<double>-2.003750834E7</double>
<double>2.003750834E7</double>
<double>2.003750834E7</double>
</coords>
</dataBounds>
<gridBounds>
<coords>
<double>-2.003750834E7</double>
<double>-2.003750834E7</double>
<double>2.003750834E7</double>
<double>2.003750834E7</double>
</coords>
</gridBounds>
</grid>
</entry>
<entry>
<srs>
<number>4326</number>
</srs>
<grid>
<srs>
<number>4326</number>
</srs>
<dataBounds>
<coords>
<double>-180.0</double>
<double>-90.0</double>
<double>180.0</double>
<double>90.0</double>
</coords>
</dataBounds>
<gridBounds>
<coords>
<double>-180.0</double>
<double>-90.0</double>
<double>180.0</double>
<double>90.0</double>
</coords>
</gridBounds>
<!--
This grid only allows zoom levels 0 through 20
-->
<zoomStart>0</zoomStart>
<zoomStop>20</zoomStop>
</grid>
</entry>
</grids>
<wmsUrl>
<string>http://localhost/geoserver/wms</string>
</wmsUrl>
<wmsLayers>osm</wmsLayers>
<metaWidthHeight>
<int>3</int>
<int>3</int>
</metaWidthHeight>
<tiled>true</tiled>
<transparent>true</transparent>
<bgColor></bgColor>
<palette></palette>
<expireCache>120</expireCache>
<expireClients>240</expireClients>
</wmsLayer>
</layers>
</gwcConfiguration>