From 12b9f26b646a822c1e246ed1394b645b5d0f01d9 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sun, 12 Nov 2017 19:21:23 +0000 Subject: [PATCH] enable caching --- tasks/setup_Debian.yml | 3 +++ templates/config.php.j2 | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/tasks/setup_Debian.yml b/tasks/setup_Debian.yml index c7b71dc..2a1aba9 100644 --- a/tasks/setup_Debian.yml +++ b/tasks/setup_Debian.yml @@ -20,6 +20,9 @@ - ca-certificates - sudo - php-apcu + - memcached + - php-memcached + notify: restart apache2 - name: remove default page file: diff --git a/templates/config.php.j2 b/templates/config.php.j2 index 4874c67..ac29327 100644 --- a/templates/config.php.j2 +++ b/templates/config.php.j2 @@ -314,4 +314,14 @@ $CONFIG = array( 'upgrade.disable-web' => true, +/** + * Enable memcache + */ +'memcache.local' => '\OC\Memcache\APCu', +'memcache.distributed' => '\OC\Memcache\Memcached', +'memcached_servers' => array( + array('localhost', 11211), + ), + + );