From 1daeb3976e0349d060c0ab938ec263196fab7614 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 24 May 2016 15:50:28 +0200 Subject: Allow devel to use distributed cache (memcache) with 'distributed_on_devel' flag --- it_cache.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_cache.class') 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; -- cgit v1.2.3