diff --git a/src/FunderMaps.WebApi/Controllers/GeocoderController.cs b/src/FunderMaps.WebApi/Controllers/GeocoderController.cs index a2060686..da22ff65 100644 --- a/src/FunderMaps.WebApi/Controllers/GeocoderController.cs +++ b/src/FunderMaps.WebApi/Controllers/GeocoderController.cs @@ -17,7 +17,7 @@ public sealed class GeocoderController(GeocoderTranslation geocoderTranslation) /// Get address by identifier. /// /// - /// Cache response for 8 hours. Addresses will not change often. + /// Cache response for 12 hours. Addresses will not change often. /// [HttpGet("address/{id}"), ResponseCache(Duration = 60 * 60 * 12)] public Task
GetAddressAsync(string id) @@ -28,7 +28,7 @@ public Task
GetAddressAsync(string id) /// Get building by identifier. /// /// - /// Cache response for 8 hours. Building will not change often. + /// Cache response for 12 hours. Building will not change often. /// [HttpGet("building/{id}"), ResponseCache(Duration = 60 * 60 * 12)] public Task GetBuildingAsync(string id) @@ -50,7 +50,7 @@ public Task GetNeighborhoodAsync(string id) /// Get district by identifier. /// /// - /// Cache response for 8 hours. District will not change often. + /// Cache response for 12 hours. District will not change often. /// [HttpGet("district/{id}"), ResponseCache(Duration = 60 * 60 * 12)] public Task GetDistrictAsync(string id) @@ -61,7 +61,7 @@ public Task GetDistrictAsync(string id) /// Get municipality by identifier. /// /// - /// Cache response for 8 hours. Municipality will not change often. + /// Cache response for 12 hours. Municipality will not change often. /// [HttpGet("municipality/{id}"), ResponseCache(Duration = 60 * 60 * 12)] public Task GetMunicipalityAsync(string id) @@ -72,7 +72,7 @@ public Task GetMunicipalityAsync(string id) /// Get state by identifier. /// /// - /// Cache response for 8 hours. State will not change often. + /// Cache response for 12 hours. State will not change often. /// [HttpGet("state/{id}"), ResponseCache(Duration = 60 * 60 * 12)] public Task GetStateAsync(string id) @@ -83,7 +83,7 @@ public Task GetStateAsync(string id) /// Get geocoder information by identifier. /// /// - /// Cache response for 8 hours. Building will not change often. + /// Cache response for 12 hours. Building will not change often. /// [HttpGet("{id}"), ResponseCache(Duration = 60 * 60 * 12)] public async Task GetAsync(string id) diff --git a/src/FunderMaps.WebApi/Controllers/Model/ProductController.cs b/src/FunderMaps.WebApi/Controllers/Model/ProductController.cs index e05d833a..65f4b354 100644 --- a/src/FunderMaps.WebApi/Controllers/Model/ProductController.cs +++ b/src/FunderMaps.WebApi/Controllers/Model/ProductController.cs @@ -15,7 +15,10 @@ public sealed class ProductController(ModelService modelService) : FunderMapsCon /// /// Request the analysis product. /// - [HttpGet("analysis/{id}")] + /// + /// Cache response for 12 hours. Analysis will not change often. + /// + [HttpGet("analysis/{id}"), ResponseCache(Duration = 60 * 60 * 12)] public Task GetAnalysisAsync(string id) => modelService.GetAnalysisAsync(id, TenantId); @@ -23,7 +26,10 @@ public Task GetAnalysisAsync(string id) /// /// Request the statistics product. /// - [HttpGet("statistics/{id}")] + /// + /// Cache response for 12 hours. Statistics will not change often. + /// + [HttpGet("statistics/{id}"), ResponseCache(Duration = 60 * 60 * 12)] public Task GetStatisticsAsync(string id) => modelService.GetStatisticsAsync(id, TenantId); }