Hello,
I have a web app that shows a large, very complex vector layer that takes a long time to draw, so I thought that it might be a good idea to use tiling (the integrated geowebcache in geoserver 2.2) to accelerate it.
My clients access the layer via WMS queries which always include a CQL_FILTER parameter. I have enabled all the options in the 'Tile cache configuration' section of the publishing info of the layer. If i check the wms issued from the clients with curl, it says the following:
curl -v "long wms request blah blah" > /dev/null
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: xxxxxxxx
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< geowebcache-miss-reason: no parameter filter exists for CQL_FILTER
< geowebcache-cache-result: MISS
< Content-Disposition: inline; filename=xxxxxxxx.png
< Content-Type: image/png
< Transfer-Encoding: chunked
< Date: Wed, 17 Oct 2012 07:51:26 GMT
So the problem seems to be that the layer lacks a parameter filter for CQL_FILTER. How can I add this parameter? Apparently there is no way of doing so through the geoserver GUI. I suppose I should add a ParameterFilter section to some gwc layer configuration file, but the documentation says not to manually edit any of the files under DATADIR_GEOSERVER/gwc-layers. What to do?
Thank you very much,