We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da29a6 commit 8462cacCopy full SHA for 8462cac
cache.php
@@ -62,6 +62,15 @@ function apc_mem( $key ) {
62
63
}
64
65
+ function apc_ref() {
66
+ global $apc;
67
+
68
+ if( !empty( $apc['cache']['cache_list'] ) )
69
+ return current($apc['cache']['cache_list']);
70
71
+ return array();
72
+ }
73
74
function human_size( $s ) {
75
$size = 'B';
76
$sizes = array( 'KB', 'MB', 'GB' );
@@ -292,7 +301,7 @@ function sort_list(&$list) {
292
301
<table>
293
302
<thead>
294
303
<tr>
295
- <th><a href="<?=sort_url(has_key('key', 'info'))?>">Key</a></th>
304
+ <th><a href="<?=sort_url(has_key(apc_ref(), 'key', 'info'))?>">Key</a></th>
296
305
<th><a href="<?=sort_url('nhits')?>">Hits</a></th>
297
306
<th><a href="<?=sort_url('mem_size')?>">Size</a></th>
298
307
<th><a href="<?=sort_url('ttl')?>">TTL</a></th>
0 commit comments