moved cache creation from modules.inc to main.php

This commit is contained in:
Roland Gruber 2004-10-02 16:40:02 +00:00
parent 4753a294f0
commit 68f0942727
2 changed files with 8 additions and 4 deletions

View File

@ -462,10 +462,6 @@ class accountContainer {
// Set startpage // Set startpage
$this->current_page=0; $this->current_page=0;
$this->subpage='attributes'; $this->subpage='attributes';
// create cache if needed
if (!isset($_SESSION['cache'])) {
$_SESSION['cache'] = new cache();
}
return 0; return 0;
} }

View File

@ -28,6 +28,14 @@ $Id$
* @author Roland Gruber * @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 // check if all suffixes in conf-file exist
$conf = $_SESSION['config']; $conf = $_SESSION['config'];