X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_cache_handler.inc;h=fd47ec861e21926b9c56b71cb041aad90bf9994f;hb=6c6148c73fa05be5904cb13385ed133bc615fdca;hp=036733333473b60e93c09f0889986249b61d3f9c;hpb=acc5c54b634c4234f3f08ae78f2a2c149144b37f;p=gosa.git diff --git a/include/class_cache_handler.inc b/include/class_cache_handler.inc index 036733333..fd47ec861 100644 --- a/include/class_cache_handler.inc +++ b/include/class_cache_handler.inc @@ -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(""); } } }