|     Documentation    |     Premium Support

Implementing Server Side Caching using Postgres datasource

Is there a fully implemented sample that shows how this works?

Hi @Clava_Mantock,

We don’t have a sample for Postgres, but we have a cache generator sample for shapefile. You could do some minor changes on LayerPorovider to support Postgres, just replace ShapeFileFeatureLayer with PostgreSqlFeatureLayer. Then you could use it to generate tile caches for PostgreSqlFeatureLayer.

After cache is generated, you could use cache by the code below.
layerOverlay.TileCache = new FileRasterTileCache(@"..\your\cache\folder");