Skip to content

Commit

Permalink
Fix summary cache issue on pages with top panels
Browse files Browse the repository at this point in the history
-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
  • Loading branch information
joeuhren committed May 10, 2024
1 parent 517e029 commit 7ebdb5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}});
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7ebdb5e

Please sign in to comment.