diff --git a/app/notify_client/cache.py b/app/notify_client/cache.py index 8bdd6e38c..85bcd54ab 100644 --- a/app/notify_client/cache.py +++ b/app/notify_client/cache.py @@ -4,7 +4,7 @@ from datetime import timedelta from functools import wraps from inspect import signature -TTL = int(timedelta(hours=24).total_seconds()) +TTL = int(timedelta(days=7).total_seconds()) def _get_argument(argument_name, client_method, args, kwargs): diff --git a/tests/app/notify_client/test_service_api_client.py b/tests/app/notify_client/test_service_api_client.py index ef4a9d318..77df78091 100644 --- a/tests/app/notify_client/test_service_api_client.py +++ b/tests/app/notify_client/test_service_api_client.py @@ -175,7 +175,7 @@ def test_client_returns_count_of_service_templates( call( 'service-{}'.format(SERVICE_ONE_ID), '{"data_from": "api"}', - ex=86400 + ex=604800, ) ], {'data_from': 'api'}, @@ -205,7 +205,7 @@ def test_client_returns_count_of_service_templates( call( 'template-{}-version-None'.format(FAKE_TEMPLATE_ID), '{"data_from": "api"}', - ex=86400 + ex=604800, ) ], {'data_from': 'api'}, @@ -235,7 +235,7 @@ def test_client_returns_count_of_service_templates( call( 'template-{}-version-1'.format(FAKE_TEMPLATE_ID), '{"data_from": "api"}', - ex=86400 + ex=604800, ) ], {'data_from': 'api'}, @@ -265,7 +265,7 @@ def test_client_returns_count_of_service_templates( call( 'service-{}-templates'.format(SERVICE_ONE_ID), '{"data_from": "api"}', - ex=86400 + ex=604800, ) ], {'data_from': 'api'}, @@ -295,7 +295,7 @@ def test_client_returns_count_of_service_templates( call( 'template-{}-versions'.format(FAKE_TEMPLATE_ID), '{"data_from": "api"}', - ex=86400 + ex=604800, ) ], {'data_from': 'api'}, diff --git a/tests/app/notify_client/test_user_client.py b/tests/app/notify_client/test_user_client.py index dc90413f7..9f5977f87 100644 --- a/tests/app/notify_client/test_user_client.py +++ b/tests/app/notify_client/test_user_client.py @@ -191,7 +191,7 @@ def test_client_converts_admin_permissions_to_db_permissions_on_add_to_service(a call( 'user-{}'.format(user_id), '{"data": "from api"}', - ex=86400 + ex=604800 ) ], 'from api',