From 72b07ce8f142ab8e5551b3ecbee5acf3e2277da3 Mon Sep 17 00:00:00 2001 From: Samuelfaure Date: Wed, 23 Oct 2024 14:02:12 +0100 Subject: [PATCH] increasing cache and limiting request time for status page --- app/services/status_page.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/status_page.rb b/app/services/status_page.rb index 123fce8bd..772464038 100644 --- a/app/services/status_page.rb +++ b/app/services/status_page.rb @@ -32,7 +32,7 @@ def raw_current_status def retrieve_from_status_page status = page_config_data['globals']['topLevelStatus']['status'] - cache.write(cache_key, status, expires_in: 5.minutes.to_i) + cache.write(cache_key, status, expires_in: 60.minutes.to_i) status end @@ -44,7 +44,7 @@ def page_config_data end def page_config_data_body - URI.parse(page_config_data_url).open.read + URI.parse(page_config_data_url).open(open_timeout: 10, read_timeout: 10).read end def page_config_data_url