From 68f0942727bbd2ce7b2b007824ccb50e497222de Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 2 Oct 2004 16:40:02 +0000 Subject: [PATCH] moved cache creation from modules.inc to main.php --- lam/lib/modules.inc | 4 ---- lam/templates/main.php | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index cac9bc3b..f37feacf 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -462,10 +462,6 @@ class accountContainer { // Set startpage $this->current_page=0; $this->subpage='attributes'; - // create cache if needed - if (!isset($_SESSION['cache'])) { - $_SESSION['cache'] = new cache(); - } return 0; } diff --git a/lam/templates/main.php b/lam/templates/main.php index 88978071..fa12a3b3 100644 --- a/lam/templates/main.php +++ b/lam/templates/main.php @@ -28,6 +28,14 @@ $Id$ * @author Roland Gruber */ +/** LDAP attibute cache */ +include_once('../lib/cache.inc'); + +// create cache object +if (!isset($_SESSION['cache'])) { + $_SESSION['cache'] = new cache(); +} + // check if all suffixes in conf-file exist $conf = $_SESSION['config'];