From 5d98d7e971b52f47a414625272cedda0a01edd49 Mon Sep 17 00:00:00 2001
From: Thomas Steur <tsteur@users.noreply.github.com>
Date: Mon, 12 Jan 2015 12:59:17 +1300
Subject: [PATCH] use a static Array cache during development

During development we still want to use a cache to cache items that are requested multiple times during one request. For example Marketplace API calls. The marketplace page in dev mode does now load in about 4 seconds instead of 30 seconds. Also plugin components etc. will now longer loaded multiple times.
---
 config/global.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/global.php b/config/global.php
index 33d8dc33c5..b8daf48d7f 100644
--- a/config/global.php
+++ b/config/global.php
@@ -34,7 +34,7 @@ return array(
         if (defined('PIWIK_TEST_MODE') && PIWIK_TEST_MODE) { // todo replace this with isTest() instead of isCli()
             $backend = 'file';
         } elseif (\Piwik\Development::isEnabled()) {
-            $backend = 'null';
+            $backend = 'array';
         } else {
             $backend = $c->get('ini.Cache.backend');
         }
-- 
GitLab