diff --git a/app/notify_client/performance_dashboard_api_client.py b/app/notify_client/performance_dashboard_api_client.py index c08734aff..e8800b321 100644 --- a/app/notify_client/performance_dashboard_api_client.py +++ b/app/notify_client/performance_dashboard_api_client.py @@ -3,7 +3,7 @@ from app.notify_client import NotifyAdminAPIClient, cache class PerformanceDashboardAPIClient(NotifyAdminAPIClient): - @cache.set('performance-stats-{start_date}-to-{end_date}') + @cache.set('performance-stats-{start_date}-to-{end_date}', ttl_in_seconds=3600) def get_performance_dashboard_stats( self, *, diff --git a/tests/app/notify_client/test_performance_platform_api_client.py b/tests/app/notify_client/test_performance_platform_api_client.py index dbdfbd6a1..5a68d743f 100644 --- a/tests/app/notify_client/test_performance_platform_api_client.py +++ b/tests/app/notify_client/test_performance_platform_api_client.py @@ -54,7 +54,7 @@ def test_sets_value_in_cache(mocker): call( 'performance-stats-2021-01-01-to-2022-02-02', '{"data_from": "api"}', - ex=604800, + ex=3600, ), ]