Use memory only CHI per default
Change-Id: Icb436c8b222e90020d920834d9e8fb751ed030be
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 684ef3b..854edf1 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -142,7 +142,6 @@
# Load plugins
foreach (
'Search', # Abstract Search framework
- 'CHI', # Global caching mechanism
'TagHelpers::MailToChiffre', # Obfuscate email addresses
'KalamarHelpers', # Specific Helpers for Kalamar
'KalamarUser', # Specific Helpers for Kalamar
@@ -154,6 +153,17 @@
$self->plugin($_);
};
+ # Global caching mechanism
+ $self->plugin('CHI' => {
+ default => {
+ driver => 'Memory',
+ global => 1
+ },
+ user => {
+ driver => 'Memory',
+ global => 1
+ }
+ });
# Configure mail exception
if ($self->config('MailException')) {