Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-02-04 01:36:08 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-02-11 02:47:45 +0300
commitf23c459d86891ad107b1dd494b7479da5cfdd48a (patch)
tree38ace203864ab2baa846d124c409dab288844290 /config/environment
parente5d2ed3fd1fe7e33c7d2d423825e3bbb605a5e2b (diff)
Simplified the cache configuration
Diffstat (limited to 'config/environment')
-rw-r--r--config/environment/dev.php2
-rw-r--r--config/environment/test.php7
2 files changed, 7 insertions, 2 deletions
diff --git a/config/environment/dev.php b/config/environment/dev.php
index ab095a7aa5..0a730d708c 100644
--- a/config/environment/dev.php
+++ b/config/environment/dev.php
@@ -2,6 +2,8 @@
return array(
+ 'Piwik\Cache\Backend' => DI\object('Piwik\Cache\Backend\ArrayCache'),
+
'Piwik\Translation\Loader\LoaderInterface' => DI\object('Piwik\Translation\Loader\LoaderCache')
->constructor(DI\link('Piwik\Translation\Loader\DevelopmentLoader')),
'Piwik\Translation\Loader\DevelopmentLoader' => DI\object()
diff --git a/config/environment/test.php b/config/environment/test.php
index 0dfd6d9770..4eac327a6e 100644
--- a/config/environment/test.php
+++ b/config/environment/test.php
@@ -5,8 +5,11 @@ return array(
// Disable logging
'Psr\Log\LoggerInterface' => DI\object('Psr\Log\NullLogger'),
- // Disable translation cache
- 'Piwik\Translation\Loader\LoaderInterface' => DI\object('Piwik\Translation\Loader\JsonFileLoader'),
+ 'Piwik\Cache\Backend' => function () {
+ return \Piwik\Cache::buildBackend('file');
+ },
+ 'cache.eager.cache_id' => 'eagercache-test-',
+
// Disable loading core translations
'Piwik\Translation\Translator' => DI\object()
->constructorParameter('directories', array()),