Index: trunk/phpgwapi/inc/class.phpgw.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.phpgw.inc.php	(revision 2)
+++ trunk/phpgwapi/inc/class.phpgw.inc.php	(revision 2419)
@@ -147,4 +147,10 @@
 				$url = $_SERVER['PHP_SELF'];
 			}
+			if ( array_key_exists( 'HTTP_BACKGROUNDREQUEST', $_SERVER ) )
+			{
+				if ( strpos( $url, '?' ) === false )
+					$url .= '?';
+				$url .= 'BackgroundRequest=requested';
+			}
 			if($iis)
 			{
Index: trunk/phpgwapi/inc/functions.inc.php
===================================================================
--- trunk/phpgwapi/inc/functions.inc.php	(revision 2368)
+++ trunk/phpgwapi/inc/functions.inc.php	(revision 2419)
@@ -180,23 +180,13 @@
 	/* Fill phpgw_info["server"] array */
 	// An Attempt to speed things up using cache premise
-	/* jakjr: ExpressoLivre does not use cache. */
+
 	/*
-	$GLOBALS['phpgw']->db->query("select config_value from phpgw_config WHERE config_app='phpgwapi' and config_name='cache_phpgw_info'",__LINE__,__FILE__);
-	if ($GLOBALS['phpgw']->db->num_rows())
-	{
-		$GLOBALS['phpgw']->db->next_record();
-		$GLOBALS['phpgw_info']['server']['cache_phpgw_info'] = stripslashes($GLOBALS['phpgw']->db->f('config_value'));
-	}*/
-
-	/* jakjr: ExpressoLivre does not use cache. */
-	/*	
-	$cache_query = "select content from phpgw_app_sessions where"
-		." sessionid = '0' and loginid = '0' and app = 'phpgwapi' and location = 'config'";
-
-	$GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__);
-	$server_info_cache = $GLOBALS['phpgw']->db->num_rows();
-	*/
-	/*
-	if(@$GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $server_info_cache)
+	$GLOBALS['phpgw']->db->query(
+		"select content from phpgw_app_sessions"
+			. " where sessionid = '0' and loginid = '0'"
+			. " and app = 'phpgwapi' and location = 'config'",
+		__LINE__, __FILE__ );
+
+	if ( $GLOBALS['phpgw']->db->num_rows( ) )
 	{
 		$GLOBALS['phpgw']->db->next_record();
@@ -212,18 +202,11 @@
 
 		/*
-		if(@isset($GLOBALS['phpgw_info']['server']['cache_phpgw_info']))
-		{
-			if($server_info_cache)
-			{
-				$cache_query = "DELETE FROM phpgw_app_sessions WHERE sessionid='0' and loginid='0' and app='phpgwapi' and location='config'";
-				$GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__);
-			}
-			$cache_query = 'INSERT INTO phpgw_app_sessions(sessionid,loginid,app,location,content) VALUES('
-				. "'0','0','phpgwapi','config','".addslashes(serialize($GLOBALS['phpgw_info']['server']))."')";
-			$GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__);
-		}*/
-	//}
-	unset($cache_query);
-	unset($server_info_cache);
+		$GLOBALS['phpgw']->db->query(
+			'INSERT INTO phpgw_app_sessions(sessionid,loginid,app,location,content)'
+				. " VALUES('0','0','phpgwapi','config','"
+				. addslashes( serialize( $GLOBALS['phpgw_info']['server'] ) ) . "')",
+			__LINE__, __FILE__ );
+	}*/
+
 	if(@isset($GLOBALS['phpgw_info']['server']['enforce_ssl']) && !$_SERVER['HTTPS'])
 	{
@@ -438,4 +421,11 @@
 		* Load the header unless the developer turns it off                       *
 		\*************************************************************************/
+		if ( array_key_exists( 'HTTP_BACKGROUNDREQUEST', $_SERVER ) || array_key_exists( 'BackgroundRequest', $_GET ) )
+		{
+			$GLOBALS['phpgw_info']['flags'] = array(
+				'noheader'   => true,
+				'nonavbar'   => true
+			);
+		}
 		if (!@$GLOBALS['phpgw_info']['flags']['noheader'])
 		{
Index: trunk/phpgwapi/inc/class.common.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.common.inc.php	(revision 2367)
+++ trunk/phpgwapi/inc/class.common.inc.php	(revision 2419)
@@ -1224,6 +1224,6 @@
 			}
 
-			//$GLOBALS['phpgw']->js->validate_file( 'tools','event_config' );
-			//$GLOBALS['phpgw']->js->validate_file( 'tools','xconnector' );
+			$GLOBALS['phpgw']->js->validate_file( 'tools','event_config' );
+			$GLOBALS['phpgw']->js->validate_file( 'tools','xconnector' );
 			//$GLOBALS['phpgw']->js->validate_file( 'tools','xlink' );
 
