servlib/cmd/BPQCommand.cc
changeset 67 cfe2328ba1c6
parent 66 e1101c5d54a1
--- a/servlib/cmd/BPQCommand.cc	Fri Jan 06 17:28:36 2012 +0000
+++ b/servlib/cmd/BPQCommand.cc	Tue Jan 10 12:57:26 2012 +0000
@@ -41,11 +41,16 @@
     }
     const char* op = argv[1];
 
-    if (strncmp(op, "enabled", strlen("enabled")) == 0) {
+    if (strncmp(op, "enable", strlen("enable")) == 0) {
 
 		BundleDaemon::instance()->bpq_cache()->cache_enabled_ = true;
 		return TCL_OK;
 
+    } else if(strncmp(op, "disable", strlen("disable")) == 0) {
+
+    	BundleDaemon::instance()->bpq_cache()->cache_enabled_ = false;
+		return TCL_OK;
+
     } else if(strncmp(op, "cache_size", strlen("cache_size")) == 0) {
         if (argc < 3) {
             wrong_num_args(argc, argv, 2, 3, INT_MAX);