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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user