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'];