Add buttons to clear apcu and opcache

This commit is contained in:
Kijin Sung 2021-02-05 20:45:11 +09:00
parent 9160b867aa
commit 80b235001e
6 changed files with 53 additions and 2 deletions

View file

@ -8,4 +8,18 @@
<section class="section">
<div class="server_env">{$str_info}</div>
<div class="server_env">[Tasks]<br /><a href="javascript:apcu_clear_cache()">apcu_clear_cache()</a><br /><a href="javascript:opcache_reset()">opcache_reset()</a></div>
</section>
<script>
function apcu_clear_cache() {
exec_json('admin.procAdminClearApcu', { }, function(data) {
alert(data.message);
});
}
function opcache_reset() {
exec_json('admin.procAdminClearOpcache', { }, function(data) {
alert(data.message);
});
}
</script>