From 1739b108dccb3225672eb85776aa9b5fda99dad5 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 22 Jan 2009 07:01:36 -0700 Subject: [PATCH] Add config option to disable caching. --- chora/config/conf.xml | 5 +++++ chora/docs/CHANGES | 1 + chora/lib/base.php | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/chora/config/conf.xml b/chora/config/conf.xml index 6da82c6ae..b4260a28c 100644 --- a/chora/config/conf.xml +++ b/chora/config/conf.xml @@ -105,6 +105,11 @@ + + false + + Menu Settings diff --git a/chora/docs/CHANGES b/chora/docs/CHANGES index 665bdf3d5..fe37b9af0 100644 --- a/chora/docs/CHANGES +++ b/chora/docs/CHANGES @@ -2,6 +2,7 @@ v3.0-git -------- +[mms] Add configuration option to disable caching. [mms] Move log entries in annotate screen to an AJAX request. [mms] Add support for git repositories. diff --git a/chora/lib/base.php b/chora/lib/base.php index baca73352..f055d0787 100644 --- a/chora/lib/base.php +++ b/chora/lib/base.php @@ -45,7 +45,9 @@ $notification = &Notification::singleton(); $notification->attach('status'); // Cache. -$cache = &Horde_Cache::singleton($conf['cache']['driver'], Horde::getDriverConfig('cache', $conf['cache']['driver'])); +if (!empty($conf['caching'])) { + $cache = &Horde_Cache::singleton($conf['cache']['driver'], Horde::getDriverConfig('cache', $conf['cache']['driver'])); +} // Horde base libraries. require_once 'Horde/Text.php'; -- 2.11.0