Index: /trunk/admin/xcache.tpl.php
===================================================================
--- /trunk/admin/xcache.tpl.php	(revision 117)
+++ /trunk/admin/xcache.tpl.php	(revision 118)
@@ -54,4 +54,5 @@
 		<th>Cached</th>
 		<th>Deleted</th>
+		<th>GC</th>
 	</tr>
 	<?php
@@ -92,4 +93,5 @@
 		<td>{$ci['cached']}</td>
 		<td>{$ci['deleted']}</td>
+		<td>{$ci['gc']}</td>
 EOS;
 
Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 117)
+++ /trunk/xcache.c	(revision 118)
@@ -368,5 +368,5 @@
 
 /* helper functions for user functions */
-static void xc_fillinfo_dmz(xc_cache_t *cache, zval *return_value TSRMLS_DC) /* {{{ */
+static void xc_fillinfo_dmz(int cachetype, xc_cache_t *cache, zval *return_value TSRMLS_DC) /* {{{ */
 {
 	zval *blocks;
@@ -376,4 +376,5 @@
 #endif
 	xc_mem_t *mem = cache->mem;
+	zend_ulong interval = cachetype = XC_TYPE_PHP ? xc_php_gc_interval : xc_var_gc_interval;
 
 	add_assoc_long_ex(return_value, ZEND_STRS("slots"),     cache->hentry->size);
@@ -386,4 +387,10 @@
 	add_assoc_long_ex(return_value, ZEND_STRS("cached"),    cache->entries_count);
 	add_assoc_long_ex(return_value, ZEND_STRS("deleted"),   cache->deletes_count);
+	if (interval) {
+		add_assoc_long_ex(return_value, ZEND_STRS("gc"),    (cache->last_gc_expires + interval) - XG(request_time));
+	}
+	else {
+		add_assoc_null_ex(return_value, ZEND_STRS("gc"));
+	}
 
 	MAKE_STD_ZVAL(blocks);
@@ -1435,5 +1442,5 @@
 			ENTER_LOCK(cache) {
 				if (optype == XC_OP_INFO) {
-					xc_fillinfo_dmz(cache, return_value TSRMLS_CC);
+					xc_fillinfo_dmz(type, cache, return_value TSRMLS_CC);
 				}
 				else {
