aboutsummaryrefslogtreecommitdiffstats
path: root/include/config_default.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-07-13 22:02:49 +0000
committerplegall <plg@piwigo.org>2011-07-13 22:02:49 +0000
commit9fa420ea240e188c3e70a41660a7e5fd99ac6f06 (patch)
tree75a5e05264d9e090357e1352257e455caab2a236 /include/config_default.inc.php
parenta4f8880e045d4dfdc9f4addf1a63ca2f53cd4744 (diff)
bug 2375 fixed: ability to deactivate representative cache on sub-albums (['representative_cache_on_subcats']) or when searching for another representative due to privacy level (['representative_cache_on_level'])
git-svn-id: http://piwigo.org/svn/branches/2.2@11738 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/config_default.inc.php')
-rw-r--r--include/config_default.inc.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 625301752..bf3d32eb0 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -252,6 +252,18 @@ $conf['display_fromto'] = false;
// Maintenance].
$conf['allow_random_representative'] = false;
+// representative_cache_on_level: if a thumbnail is chosen as representative
+// but has higher privacy level than current user, Piwigo randomly selects
+// another thumbnail. Should be store this thumbnail in cache to avoid
+// another consuming SQL query on next page refresh?
+$conf['representative_cache_on_level'] = true;
+
+// representative_cache_on_subcats: if a category (= album) only contains
+// sub-categories, Piwigo randomly selects a thumbnail among sub-categories
+// representative. Should we store this thumbnail in cache to avoid another
+// "slightly" consuming SQL query on next page refresh?
+$conf['representative_cache_on_subcats'] = true;
+
// allow_html_descriptions : authorize administrators to use HTML in
// category and element description.
$conf['allow_html_descriptions'] = true;