mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Add buttons to clear apcu and opcache
This commit is contained in:
parent
9160b867aa
commit
80b235001e
6 changed files with 53 additions and 2 deletions
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue