diff --git a/dev/services/wms/ows_refactored/ows_reslim_cfg.py b/dev/services/wms/ows_refactored/ows_reslim_cfg.py index 271e35d98..f44b5eb8a 100644 --- a/dev/services/wms/ows_refactored/ows_reslim_cfg.py +++ b/dev/services/wms/ows_refactored/ows_reslim_cfg.py @@ -2,6 +2,10 @@ # external caches (e.g Cloudfront) dataset_cache_rules = [ + { + "min_datasets": 1, + "max_age": 60 * 60, + }, { "min_datasets": 5, "max_age": 60 * 60 * 24, diff --git a/dev/services/wms/ows_refactored/ows_root_cfg.py b/dev/services/wms/ows_refactored/ows_root_cfg.py index b2ae32d4b..14429ae1f 100644 --- a/dev/services/wms/ows_refactored/ows_root_cfg.py +++ b/dev/services/wms/ows_refactored/ows_root_cfg.py @@ -92,6 +92,8 @@ "s3_aws_zone": "ap-southeast-2", "max_width": 512, "max_height": 512, + # Allow the WMS/WMTS GetCapabilities responses to be cached for 1 hour + "caps_cache_maxage": 3600, }, # END OF wms SECTION "wmts": { # Config for WMTS service, for all products/layers @@ -123,6 +125,8 @@ "wcs": { # Config for WCS service, for all products/coverages "default_geographic_CRS": "EPSG:4326", + "caps_cache_maxage": 3600, + "default_desc_cache_maxage": 3600, "formats": { "GeoTIFF": { "renderers": { diff --git a/prod/services/wms/ows_refactored/ows_reslim_cfg.py b/prod/services/wms/ows_refactored/ows_reslim_cfg.py index a1a67fa74..db2940c01 100644 --- a/prod/services/wms/ows_refactored/ows_reslim_cfg.py +++ b/prod/services/wms/ows_refactored/ows_reslim_cfg.py @@ -29,7 +29,8 @@ "wms": { "zoomed_out_fill_colour": [150, 180, 200, 160], "min_zoom_level": 6.9, - "dataset_cache_rules": dataset_cache_rules + "dataset_cache_rules": dataset_cache_rules, + "max_datasets": 24, }, "wcs": common_wcs_limits, } @@ -39,6 +40,7 @@ "zoomed_out_fill_colour": [150, 180, 200, 160], "min_zoom_level": 5.9, "dataset_cache_rules": dataset_cache_rules, + "max_datasets": 24, }, "wcs": common_wcs_limits, } @@ -48,6 +50,7 @@ "zoomed_out_fill_colour": [150, 180, 200, 160], "min_zoom_level": 7.8, "dataset_cache_rules": dataset_cache_rules, + "max_datasets": 24, }, "wcs": common_wcs_limits, } @@ -57,6 +60,7 @@ "zoomed_out_fill_colour": [150, 180, 200, 160], "min_zoom_level": 8.1, "dataset_cache_rules": dataset_cache_rules, + "max_datasets": 24, }, "wcs": common_wcs_limits, }