The paragraph at the end is important:

> If a request is made using any of the above parameters, the request will
be passed to GeoServer, unless a parameter filter has been set up, in which
case GeoWebCache will process the request.

You need to add a parameter filter to let GWC know that it can cache based
on that parameter and what values to allow.

You can check the headers of the response to see if GWC handled it.  If you
see geowebcache-cache-result then GWC handled the tile, it may have a value
of HIT or MISS.  If you make the same request again, then the result should
always be HIT if caching is working.

You might also run into issues with girdset alignment if you are using
anything other than the standard WGS84 or Web Mercator gridsets.  The
client may not know how to read the gridset info from the capabilities doc
which could lead to misaligned tile requests unless you configure the
client manually.  If you want to enforce the use of caching, use the GWC
endpoints rather than Direct Integration.  If anything goes wrong then,
you'll just get an error rather than an otherwise correct response that
bypasses the cache.


On 15 July 2014 07:25, Paolo Corti <pco...@gmail.com> wrote:

> Hi all
>
> I have a cached layer with direct integration with GeoServer WMS.
>
> According to the documentation it seems that CQL_FILTER is a supported
> parameter [1].
> Thought, it seems to me that sending a GetMap request with tiled=True
> to GeoServer, is still hitting the database (in the GeoServer log I
> can see the geotools.jdbc logged SQL).
> Therefore I believe that GeoServer is managing the request as a regular
> WMS one.
>
> Am I correcting assuming that CQL is supported by GWC?
>
> On a side note, what is the best way to discover if it is GeoServer or
> GWC to send the response to a request?
>
> thanks in advance
> p
>
> [1]
> http://docs.geoserver.org/latest/en/user/geowebcache/using.html#supported-parameter-filters
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 

Kevin Smith

Junior Software Engineer | Boundless <http://boundlessgeo.com/>

ksm...@boundlessgeo.com

+1-778-785-7459

@boundlessgeo <http://twitter.com/boundlessgeo/>


<http://twitter.com/boundlessgeo/>

[image: http://boundlessgeo.com/]
<http://boundlessgeo.com/>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to