diff options
-rw-r--r-- | it_cache.class | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/it_cache.class b/it_cache.class index 305f412..868b038 100644 --- a/it_cache.class +++ b/it_cache.class @@ -28,14 +28,10 @@ static function _defaults($p) { $p += array( 'ttl' => 2, - 'distributed' => $p['distributed_on_devel'], 'hostsfile' => '/opt/ultra/etc/memcached.hosts', 'safety' => 1, ); - if (!it::is_live() && !$p['distributed_on_devel']) - $p['distributed'] = false; # Always local cache on non-live systems - return $p; } @@ -71,7 +67,6 @@ static function get($key, $p = array()) * @param $key Key to put value with * @param $value Value to put (mixed but no objects allowed) * @param $p['distributed'] Use distributed memcache on live machines (scalars may become strings) [false] - * @param $p['distributed_on_devel'] Like $p['distributed'], but also use memcache on devel and twin * @param $p['ttl'] Time to live for this key/value-pair in seconds * @param $p['safety'] set to 0 to suppress an it::error in case of failure [1] * @return Returns $value |