summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2016-05-24 15:50:28 +0200
committerChristian Schneider2016-05-24 15:50:50 +0200
commit1daeb3976e0349d060c0ab938ec263196fab7614 (patch)
tree0b83fc8bc219071fdcb3894268d2dfb6a9215f80
parent64f760c1483ad1b34c79557faa5fc27c2d86103d (diff)
downloaditools-1daeb3976e0349d060c0ab938ec263196fab7614.tar.gz
itools-1daeb3976e0349d060c0ab938ec263196fab7614.tar.bz2
itools-1daeb3976e0349d060c0ab938ec263196fab7614.zip
Allow devel to use distributed cache (memcache) with 'distributed_on_devel' flag
-rw-r--r--it_cache.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_cache.class b/it_cache.class
index d01df52..3fd154d 100644
--- a/it_cache.class
+++ b/it_cache.class
@@ -32,7 +32,7 @@ static function _defaults($p)
'hostsfile' => '/opt/ultra/etc/memcached.hosts',
);
- if (!it::is_live())
+ if (!it::is_live() && !$p['distributed_on_devel'])
$p['distributed'] = false; # Always local cache on non-live systems
return $p;