Index: branches/RC/core/kernel/application.php =================================================================== diff -u -N -r10602 -r10610 --- branches/RC/core/kernel/application.php (.../application.php) (revision 10602) +++ branches/RC/core/kernel/application.php (.../application.php) (revision 10610) @@ -231,7 +231,25 @@ $this->Memcached->addServer($server, $port); } } + + //try to set something to cache, if not working - set $this->Memcached to null } + + function CacheSet($name, $value, $expiration) + { + if (isset($this->Memcached)) { + return $this->Memcached->set($name, $value, 0, $expiration); + } + return false; + } + + function CacheGet($name) + { + if (isset($this->Memcached)) { + return $this->Memcached->get($name); + } + return false; + } /** * Initializes the Application @@ -246,7 +264,7 @@ { if($this->InitDone) return false; -// $this->InitMemcached(); + $this->InitMemcached(); if (!constOn('SKIP_OUT_COMPRESSION')) { ob_start(); // collect any output from method (other then tags) into buffer