From ac348d4bc4fa7fd8c945d08eb706a70d982b14aa Mon Sep 17 00:00:00 2001
From: Hanne Moa <hanne.moa@uninett.no>
Date: Thu, 27 Oct 2016 10:40:24 +0200
Subject: [PATCH] Flip template.auto_reload to a safer default

Also add some docs.
---
 config-templates/config.php | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/config-templates/config.php b/config-templates/config.php
index 442a1d3b6..fcb1ffaaf 100644
--- a/config-templates/config.php
+++ b/config-templates/config.php
@@ -704,8 +704,16 @@ $config = array(
 
     /*
      * Templating options
+     *
+     * By default, twig templates are not cached. To turn on template caching:
+     * Set 'template.cache' to an aboslute path pointing to a directory that
+     * SimpleSAMLphp has read and write permissions to. Then, set
+     * 'template.auto_reload' to false.
+     *
+     * When upgrading or changing themes, delete the contents of the cache.
      */
-    'template.auto_reload' => false,
+    'template.auto_reload' => true,
+    //'template.cache' => '',
 
 
     /*********************
-- 
GitLab