Use memory only CHI per default

Change-Id: Icb436c8b222e90020d920834d9e8fb751ed030be
diff --git a/kalamar.conf b/kalamar.conf
index fc6a94c..700576a 100644
--- a/kalamar.conf
+++ b/kalamar.conf
@@ -56,27 +56,5 @@
   # See Mojolicious::Plugin::Piwik
   Piwik => {
     embed => 0
-  },
-
-  # See Mojolicious::Plugin::CHI
-  CHI => {
-    default => {
-      driver => 'FastMmap',
-      root_dir => app->home . '/cache/data',
-      cache_size => '100m',
-      max_size => '100m'
-    },
-    user => {
-      l1_cache => {
-      	driver => 'FastMmap',
-	      root_dir => app->home . '/cache/usermap',
-        	cache_size => '50m',
-	        max_size => '50m'
-      },
-      driver => 'File',
-      root_dir => app->home . '/cache/userfile',
-      max_key_length => 64,
-      max_size => '500m'
-    }
   }
 }
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')) {