summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2021-03-23 14:07:13 +0100
committerUrban Müller2021-03-23 14:07:13 +0100
commit04961c81d7923f23d3074274793a677d57502bf6 (patch)
tree4cf5b5026081af7397933e143119e2c9d34dda4b
parent6e9d304c9503e88fdac90a39aaff923f072618c8 (diff)
downloaditools-04961c81d7923f23d3074274793a677d57502bf6.tar.gz
itools-04961c81d7923f23d3074274793a677d57502bf6.tar.bz2
itools-04961c81d7923f23d3074274793a677d57502bf6.zip
use (local) distributed cache on devel by default
-rw-r--r--it_cache.class5
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