Browse Source

show hash value in admin

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@360 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent
commit
f4688ad313
  1. 2
      admin/common-zh-simplified-utf-8.lang.php
  2. 2
      admin/common-zh-traditional-utf-8.lang.php
  3. 2
      admin/xcache.tpl.php
  4. 1
      xcache.c

2
admin/common-zh-simplified-utf-8.lang.php

@ -58,6 +58,8 @@ $strings = array(
=> '设备',
'inode'
=> 'Inode',
'hash'
=> 'Hash',
'Access'
=> '访问',
'Create'

2
admin/common-zh-traditional-utf-8.lang.php

@ -58,6 +58,8 @@ $strings = array(
=> '設備',
'inode'
=> 'Inode',
'hash'
=> 'Hash',
'Access'
=> '存取',
'Create'

2
admin/xcache.tpl.php

@ -178,6 +178,7 @@ if ($cachelist) {
<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('inode'); ?></a></th>
<?php } ?>
<?php } ?>
<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('hash'); ?></a></th>
<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Access'); ?></a></th>
<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Create'); ?></a></th>
<?php if ($listname == 'Deleted') { ?>
@ -227,6 +228,7 @@ ENTRY;
}
}
echo <<<ENTRY
<td int="{$entry['hvalue']}">{$entry['hvalue']}</td>
<td int="{$entry['atime']}">{$atime}</td>
<td int="{$entry['ctime']}">{$ctime}</td>
ENTRY;

1
xcache.c

@ -510,6 +510,7 @@ static void xc_fillentry_dmz(xc_entry_t *entry, int del, zval *list TSRMLS_DC) /
add_assoc_long_ex(ei, ZEND_STRS("hits"), entry->hits);
add_assoc_long_ex(ei, ZEND_STRS("ctime"), entry->ctime);
add_assoc_long_ex(ei, ZEND_STRS("atime"), entry->atime);
add_assoc_long_ex(ei, ZEND_STRS("hvalue"), entry->hvalue);
if (del) {
add_assoc_long_ex(ei, ZEND_STRS("dtime"), entry->dtime);
}

Loading…
Cancel
Save