Caching the phpgw_info array is now a server option

This commit is contained in:
jengo 2001-02-08 04:59:19 +00:00
parent 29baf10107
commit fcb18dbb03
2 changed files with 8 additions and 3 deletions

View File

@ -117,7 +117,7 @@
$this->update_dla(); $this->update_dla();
$this->account_id = $phpgw->accounts->name2id($this->account_lid); $this->account_id = $phpgw->accounts->name2id($this->account_lid);
if ($this->use_cache) { if ($phpgw_info["server"]["cache_phpgw_info"]) {
$t = $this->appsession('phpgw_info_cache','phpgwapi'); $t = $this->appsession('phpgw_info_cache','phpgwapi');
$phpgw_info["server"] = $t["server"]; $phpgw_info["server"] = $t["server"];
$phpgw_info["user"] = $t["user"]; $phpgw_info["user"] = $t["user"];
@ -219,7 +219,7 @@
$this->read_repositories(); $this->read_repositories();
$phpgw_info["user"] = $this->user; $phpgw_info["user"] = $this->user;
$phpgw_info["hooks"] = $this->hooks; $phpgw_info["hooks"] = $this->hooks;
if ($this->use_cache) { if ($phpgw_info["server"]["cache_phpgw_info"]) {
$this->appsession('phpgw_info_cache','phpgwapi',$phpgw_info); $this->appsession('phpgw_info_cache','phpgwapi',$phpgw_info);
} }
@ -307,7 +307,7 @@
$phpgw_info_temp["user"]["kp3"] = ""; $phpgw_info_temp["user"]["kp3"] = "";
$phpgw_info_temp["flags"] = array(); $phpgw_info_temp["flags"] = array();
if ($this->use_cache) { if ($phpgw_info["server"]["cache_phpgw_info"]) {
$this->appsessions("phpgw_info_cache","phpgwapi",$phpgw_info_temp); $this->appsessions("phpgw_info_cache","phpgwapi",$phpgw_info_temp);
} }
} }

View File

@ -73,3 +73,8 @@
<td>Would like like phpGroupWare to check for new version<br>when admins login ?:</td> <td>Would like like phpGroupWare to check for new version<br>when admins login ?:</td>
<td><input type="checkbox" name="newsettings[checkfornewversion]" value="True"<?php echo ($current_config["checkfornewversion"]?" checked":""); ?>></td> <td><input type="checkbox" name="newsettings[checkfornewversion]" value="True"<?php echo ($current_config["checkfornewversion"]?" checked":""); ?>></td>
</tr> </tr>
<tr bgcolor="e6e6e6">
<td>Would like like phpGroupWare to cache the phpgw_info array ?:</td>
<td><input type="checkbox" name="newsettings[cache_phpgw_info]" value="True"<?php echo ($current_config["cache_phpgw_info"]?" checked":""); ?>></td>
</tr>