Code

Moved fixes to trunk
[gosa.git] / include / class_cache_handler.inc
index 036733333473b60e93c09f0889986249b61d3f9c..fd47ec861e21926b9c56b71cb041aad90bf9994f 100644 (file)
@@ -4,7 +4,7 @@ class gosa_cache
 {
   var $c_memcache = NULL;
   var $b_connected= FALSE; 
-  
+
   function __construct()
   {
     $this->connect();
@@ -16,7 +16,7 @@ class gosa_cache
     $this->close();
     if(class_exists("Memcache")){
       $this->c_memcache = new Memcache;
-      $res = $this->c_memcache->connect("localhost",11211);
+      $res = $this->c_memcache->pconnect("localhost",11211);
       if(!$res){
         $this->b_connected = FALSE;
         $this->c_memcache  = NULL;
@@ -55,12 +55,12 @@ class gosa_cache
     }
   }
 
-  function get_server_status()
+  function status()
   {
     if($this->b_connected){ 
       return($this->c_memcache->getStats());
     }else{
-      return(FALSE);
+      return("");
     }
   }
 }