revised edition
This commit is contained in:
56
views/templates/admin/configure.tpl
Normal file
56
views/templates/admin/configure.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>Memory Cache Statistics
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>Status</strong></td>
|
||||
<td>{$statusLabel}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Max Allowed Value Size</strong></td>
|
||||
<td>{$stats['max_size']} characters</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Total Keys in Cache</strong></td>
|
||||
<td>{$stats['rows']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Expired Keys (Awaiting Prune)</strong></td>
|
||||
<td>{$stats['expired_rows']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Data Memory Used</strong></td>
|
||||
<td>{$dataMemoryUsed}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Index Memory Used</strong></td>
|
||||
<td>{$indexMemoryUsed}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="alert alert-info">
|
||||
<strong>How it works:</strong><br>
|
||||
This module uses the high-speed MySQL/MariaDB <code>MEMORY</code> engine.
|
||||
Data is stored entirely in RAM. If your database server reboots, the data is automatically cleared,
|
||||
but the module will auto-recover and recreate the table schema if necessary.
|
||||
</div>
|
||||
|
||||
<form action="{$currentIndex}" method="post" style="margin-top: 20px;">
|
||||
<button type="submit" name="submitPruneCache" class="btn btn-default">
|
||||
<i class="icon-eraser"></i>Prune Expired Keys
|
||||
</button>
|
||||
<button type="submit" name="submitFlushCache" class="btn btn-danger pull-right"
|
||||
onclick="return confirm(\'Are you sure you want to completely flush the cache?\');">
|
||||
<i class="icon-trash"></i>Flush Entire Cache
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user