From: S.Çağlar Onur <caglar@cs.princeton.edu>
Date: Tue, 9 Nov 2010 03:59:17 +0000 (-0500)
Subject: use zlib compression to store huge list (like site or account list)
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b2577abd4dc87458a35788708d4a69341398ee09;p=plcapi.git

use zlib compression to store huge list (like site or account list)
---

diff --git a/php/plc_api.php b/php/plc_api.php
index fed47592..886825cf 100644
--- a/php/plc_api.php
+++ b/php/plc_api.php
@@ -132,7 +132,7 @@ class PLCAPI
           $key = $this->generateKey($method, $args);
           if ($key != NULL)
           {
-              $memcache->set($key, $result == NULL ? "NULL" : $result, false, 6000);
+              $memcache->set($key, $result == NULL ? "NULL" : $result, MEMCACHE_COMPRESSED, 600);
           }
       }
       return $result;