This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "quickfw".
The branch, master has been updated
via 4ac579b1f96ddeb51d8925ffaef275d260918cf5 (commit)
from 936d9fccedd497c7283587ebc88c6758252a06f7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4ac579b1f96ddeb51d8925ffaef275d260918cf5
Author: Ivan1986 <iva...@li...>
Date: Tue Aug 24 17:41:58 2010 +0400
Сжатие в memcache
diff --git a/QFW/Cacher/Memcache.php b/QFW/Cacher/Memcache.php
index a7ace9d..4e375ea 100644
--- a/QFW/Cacher/Memcache.php
+++ b/QFW/Cacher/Memcache.php
@@ -3,6 +3,7 @@
class Cacher_Memcache implements Zend_Cache_Backend_Interface
{
protected $mc;
+ protected $compress;
public function __construct()
{
@@ -18,6 +19,7 @@ class Cacher_Memcache implements Zend_Cache_Backend_Interface
isset($directives['port']) ? $directives['port'] : '11211');
return;
}
+ $this->compress = !empty($directives['compress']) ? MEMCACHE_COMPRESSED : 0;
foreach($directives['servers'] as $server)
$this->mc->addServer($server['host'], $server['port']);
@@ -30,7 +32,7 @@ class Cacher_Memcache implements Zend_Cache_Backend_Interface
public function save($data, $id, $tags = array(), $specificLifetime = 3600)
{
- return $this->mc->set($id, $data, 0, $specificLifetime);
+ return $this->mc->set($id, $data, $this->compress, $specificLifetime);
}
public function load($id, $doNotTest = false)
-----------------------------------------------------------------------
Summary of changes:
QFW/Cacher/Memcache.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
hooks/post-receive
--
quickfw
|