From 04961c81d7923f23d3074274793a677d57502bf6 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 23 Mar 2021 14:07:13 +0100 Subject: use (local) distributed cache on devel by default --- it_cache.class | 5 ----- 1 file changed, 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 -- cgit v1.2.3