Index: trunk/htdocs/cacher/cacher.php
===================================================================
--- trunk/htdocs/cacher/cacher.php	(revision 1058)
+++ trunk/htdocs/cacher/cacher.php	(revision 1064)
@@ -158,6 +158,6 @@
 $_GET['type'] = $type = (int) $_GET['type'];
 
-// {{{ process clear
-function processClear()
+// {{{ process clear, enable, disable
+function processAction()
 {
 	$type = isset($_POST['type']) ? $_POST['type'] : null;
@@ -168,17 +168,15 @@
 		$cacheid = (int) (isset($_POST['cacheid']) ? $_POST['cacheid'] : 0);
 		if (isset($_POST['clearcache'])) {
-			$count = xcache_count($type);
-			if ($cacheid >= 0) {
-				for ($cacheid = 0; $cacheid < $count; $cacheid ++) {
-					xcache_clear_cache($type, $cacheid);
-				}
-			}
-			else {
-				xcache_clear_cache($type);
-			}
-		}
-	}
-}
-processClear();
+			xcache_clear_cache($type, $cacheid);
+		}
+		if (isset($_POST['enable'])) {
+			xcache_enable_cache($type, $cacheid);
+		}
+		if (isset($_POST['disable'])) {
+			xcache_enable_cache($type, $cacheid, false);
+		}
+	}
+}
+processAction();
 // }}}
 // {{{ load info/list
@@ -207,4 +205,5 @@
 	$total['gc'] = null;
 	$total['istotal'] = true;
+	unset($total['compiling']);
 	$cacheinfos[] = $total;
 }
