summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2009-03-12 23:58:22 +0000
committerChristian Schneider2009-03-12 23:58:22 +0000
commitf26e3204d00988f36d14e4264e637ce85adaf96c (patch)
treea0c20bfe052257b7a9907a854b4cadaeaac4e551
parentdf7acdd92e7d47ffffbbb00e551adefff5f514ff (diff)
downloaditools-f26e3204d00988f36d14e4264e637ce85adaf96c.tar.gz
itools-f26e3204d00988f36d14e4264e637ce85adaf96c.tar.bz2
itools-f26e3204d00988f36d14e4264e637ce85adaf96c.zip
Always local cache on non-live systems
-rw-r--r--it_cache.class3
1 files changed, 3 insertions, 0 deletions
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;
}