inasafe / inasafe-fba

Next generation of InaSAFE that includes support for forecast based action
MIT License
1 stars 8 forks source link

Caching vs WMS #48

Open NyakudyaA opened 4 years ago

NyakudyaA commented 4 years ago

Problem

Some tile rendering takes place, we are using WMS to retrieve new data. Can we use gwc for all layers?

Solution

If we add &tiled=true to all our request we will automatically cache all the layers. This seems to also work with wms filters.

We need to test out the following.

lucernae commented 4 years ago

The endpoint we use in the front end is using original WMS. I switch it to use GWC endpoint per your suggestions in this PR #75 . I also added tiled: true options for WMS filters.

lucernae commented 4 years ago

@NyakudyaA I'm not familiar with caching, but for layers that we use with cql_filter, how do we cache it? If we are using different flood_event_id than GWC should return different tiles, but is this configuration possible?

NyakudyaA commented 4 years ago

@NyakudyaA I'm not familiar with caching, but for layers that we use with cql_filter, how do we cache it? If we are using different flood_event_id than GWC should return different tiles, but is this configuration possible?

@lucernae we might have to test that but from my understanding if a request is passed to geoserver it will go through wms for the first time and then gets cached. So if a request is executed the second time it already exist and will come from gwc. If we are using the same bounding box and different filter we need to check if the logic is working properly