diff --git a/admin/common-zh-simplified-utf-8.lang.php b/admin/common-zh-simplified-utf-8.lang.php
index 8a38eb0..868654b 100644
--- a/admin/common-zh-simplified-utf-8.lang.php
+++ b/admin/common-zh-simplified-utf-8.lang.php
@@ -48,6 +48,8 @@ $strings = array(
=> '项目',
'Refcount'
=> '引用数',
+ 'PhpShared'
+ => '共享',
'SrcSize'
=> '源大小',
'Modify'
diff --git a/admin/common-zh-traditional-utf-8.lang.php b/admin/common-zh-traditional-utf-8.lang.php
index aaa32ab..a4cac02 100644
--- a/admin/common-zh-traditional-utf-8.lang.php
+++ b/admin/common-zh-traditional-utf-8.lang.php
@@ -48,6 +48,8 @@ $strings = array(
=> '項目',
'Refcount'
=> '引用數',
+ 'PhpShared'
+ => '共享',
'SrcSize'
=> '原始檔案大小',
'Modify'
diff --git a/admin/help-en.lang.php b/admin/help-en.lang.php
index 1ac0c6c..86bcd48 100644
--- a/admin/help-en.lang.php
+++ b/admin/help-en.lang.php
@@ -21,8 +21,9 @@
- :
- The entry name or filename
- :
- Times this entry is hit (loaded from this cache)
-- :
- Reference count this entry is holded by a php request
+- :
- Reference count of this entry is holded by a php request
- :
- Size in bytes of this entry in the cache
+- :
- Count of entry sharing this php data
- :
- Size of the source file
- :
- Last modified time of the source file
- :
- device number of the source file
diff --git a/admin/help-zh-simplified-utf-8.lang.php b/admin/help-zh-simplified-utf-8.lang.php
index 018b298..40f6e63 100644
--- a/admin/help-zh-simplified-utf-8.lang.php
+++ b/admin/help-zh-simplified-utf-8.lang.php
@@ -23,6 +23,7 @@
- :
- 该项目被命中的次数 (从共享内存区载入)
- :
- 项目依然被其他进程占据的引用次数
- :
- 项目在共享内存里占用字节数
+- :
- 与本项目相同 PHP 代码的个数
- :
- 源文件大小
- :
- 源文件最后修改时间
- :
- 源文件所在设备ID
diff --git a/admin/help-zh-traditional-utf-8.lang.php b/admin/help-zh-traditional-utf-8.lang.php
index d698819..01cc2d3 100644
--- a/admin/help-zh-traditional-utf-8.lang.php
+++ b/admin/help-zh-traditional-utf-8.lang.php
@@ -23,6 +23,7 @@
- :
- 該項目被命中的次數 (從共享記憶體區載入)
- :
- 項目依然被其他程序佔用的引用次數
- :
- 項目在共享記憶體裡佔用位元數
+- :
- 與本項目相同 PHP 內容的个數
- :
- 原始檔案大小
- :
- 原始檔案最後修改時間
- :
- 原始檔案所在設備ID
diff --git a/admin/xcache.tpl.php b/admin/xcache.tpl.php
index 44e4e9f..2403a2b 100644
--- a/admin/xcache.tpl.php
+++ b/admin/xcache.tpl.php
@@ -157,6 +157,7 @@ if ($cachelist) {
echo '';
echo '';
echo '';
+ echo '';
}
echo "
@@ -169,6 +170,7 @@ if ($cachelist) {
|
|
+ |
|
|
@@ -191,7 +193,8 @@ if ($cachelist) {
$refcount = number_format($entry['refcount']);
$size = size($entry['size']);
if ($isphp) {
- $sourcesize = size($entry['sourcesize']);
+ $sourcesize = size($entry['sourcesize']);
+ $phprefcount = number_format($entry['phprefcount']);
}
if ($isphp) {
@@ -212,6 +215,7 @@ if ($cachelist) {
ENTRY;
if ($isphp) {
echo <<{$phprefcount}
{$sourcesize} |
{$mtime} |
ENTRY;
diff --git a/xcache.c b/xcache.c
index 1bf27c6..6c5464d 100644
--- a/xcache.c
+++ b/xcache.c
@@ -501,7 +501,6 @@ static void xc_fillentry_dmz(xc_entry_t *entry, int del, zval *list TSRMLS_DC) /
ALLOC_INIT_ZVAL(ei);
array_init(ei);
- add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size);
add_assoc_long_ex(ei, ZEND_STRS("refcount"), entry->refcount);
add_assoc_long_ex(ei, ZEND_STRS("hits"), entry->hits);
add_assoc_long_ex(ei, ZEND_STRS("ctime"), entry->ctime);
@@ -532,6 +531,8 @@ static void xc_fillentry_dmz(xc_entry_t *entry, int del, zval *list TSRMLS_DC) /
switch (entry->type) {
case XC_TYPE_PHP:
php = entry->data.php;
+ add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size + php->size);
+ add_assoc_long_ex(ei, ZEND_STRS("phprefcount"), php->refcount);
add_assoc_long_ex(ei, ZEND_STRS("sourcesize"), php->sourcesize);
#ifdef HAVE_INODE
add_assoc_long_ex(ei, ZEND_STRS("device"), entry->device);
@@ -548,8 +549,10 @@ static void xc_fillentry_dmz(xc_entry_t *entry, int del, zval *list TSRMLS_DC) /
add_assoc_long_ex(ei, ZEND_STRS("autoglobal_cnt"),php->autoglobal_cnt);
#endif
break;
+
case XC_TYPE_VAR:
var = entry->data.var;
+ add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size);
break;
default: