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
This commit is contained in:
Joe Uhren
2024-05-10 15:10:47 -06:00
parent 517e0290fb
commit 7ebdb5e868
+2 -2
View File
@@ -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)