alpha version of cache debug information

This commit is contained in:
HB9HIL
2026-02-02 11:39:51 +01:00
parent 937f09eae7
commit 4d23c75781
4 changed files with 367 additions and 0 deletions

View File

@@ -101,3 +101,26 @@ function update_version_check(local_branch) {
$('#last_version_check').text("Last version check: " + new Date(timestamp).toUTCString());
});
}
$(document).ready(function () {
$('#clear_cache_button').on('click', function () {
if (!confirm('Cache wirklich löschen?')) {
return;
}
$.ajax({
url: base_url + 'index.php/debug/clear_cache',
type: 'post',
success: function (resu) {
if (resu && resu.status) {
location.reload();
} else {
alert('Cache konnte nicht geleert werden.');
}
},
error: function () {
alert('Cache konnte nicht geleert werden.');
}
});
});
});