From 7ebdb5e8689f494db654a993f5cc0ab0cb4b305e Mon Sep 17 00:00:00 2001 From: Joe Uhren Date: Fri, 10 May 2024 15:10:47 -0600 Subject: [PATCH] Fix summary cache issue on pages with top panels -Sometimes the summary info would get cached and display the wrong data. It was especially noticable on pages with top panels when using the browser back button to return to a page and the data would not load correctly --- views/layout.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/layout.pug b/views/layout.pug index ba9ace9f..27ba20f3 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -258,7 +258,7 @@ html(lang='en') 'footer-only': 'true' }; - $.ajax({url: '/ext/getsummary', headers: summary_headers, success: function(json) { + $.ajax({url: '/ext/getsummary', headers: summary_headers, cache: false, success: function(json) { $("#lblConnections").text(json.connections + ' connections'); $("#lblBlockcount").text(json.blockcount + ' blocks'); }}); @@ -399,7 +399,7 @@ html(lang='en') Accept: 'application/json, text/javascript, */*; q=0.01' }; - $.ajax({url: '/ext/getsummary', headers: summary_headers, success: function(json) { + $.ajax({url: '/ext/getsummary', headers: summary_headers, cache: false, success: function(json) { if (json.masternodeCountOnline == null) json.masternodeCountOnline = '-'; if (json.masternodeCountOffline == null)