File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,15 @@ function apc_mem( $key ) {
6262
6363 }
6464
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+
6574 function human_size ( $ s ) {
6675 $ size = 'B ' ;
6776 $ sizes = array ( 'KB ' , 'MB ' , 'GB ' );
@@ -292,7 +301,7 @@ function sort_list(&$list) {
292301 <table>
293302 <thead>
294303 <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>
296305 <th><a href="<?= sort_url ('nhits ' )?> ">Hits</a></th>
297306 <th><a href="<?= sort_url ('mem_size ' )?> ">Size</a></th>
298307 <th><a href="<?= sort_url ('ttl ' )?> ">TTL</a></th>
You can’t perform that action at this time.
0 commit comments