From f26e3204d00988f36d14e4264e637ce85adaf96c Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 12 Mar 2009 23:58:22 +0000 Subject: Always local cache on non-live systems --- it_cache.class | 3 +++ 1 file changed, 3 insertions(+) (limited to 'it_cache.class') diff --git a/it_cache.class b/it_cache.class index 0e7ff0a..718ac3b 100644 --- a/it_cache.class +++ b/it_cache.class @@ -32,6 +32,9 @@ function _defaults($p) 'hostsfile' => '/opt/ultra/etc/memcached.hosts', ); + if (!it::is_live()) + $p['distributed'] = false; # Always local cache on non-live systems + return $p; } -- cgit v1.2.3