------------------------------------------------------------
revno: 1044
committer: Roger Martin <rg1...@gmail.com>
branch nick: aikiframework
timestamp: Wed 2012-01-25 21:50:16 +0100
message:
  correct config db_cache_timeout
modified:
  libs/database/index.php


--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk

Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to 
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'libs/database/index.php'
--- libs/database/index.php	2012-01-25 20:47:48 +0000
+++ libs/database/index.php	2012-01-25 20:50:16 +0000
@@ -560,7 +560,6 @@
 
 }
 
-if ( isset($config
 
 switch ($config['db_type']){
 	case "mssql":
@@ -625,10 +624,7 @@
 if (isset($config['enable_query_cache']) && isset($config['cache_dir'])
 	&& $config['enable_query_cache'] ) {
 	
-	if (!isset($db_cache_timeout)){
-		$db_cache_timeout = 24;
-	}
-	$db->cache_timeout = $config['db_cache_timeout'];
+	$db->cache_timeout = !isset($config['db_cache_timeout']) ? $config['db_cache_timeout'] : 24;
 	$db->cache_dir = $config['cache_dir'];
 	$db->use_disk_cache = true;
 	$db->cache_queries = true;

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to