diff --git a/gulliver/thirdparty/propel/Propel.php b/gulliver/thirdparty/propel/Propel.php index 62d87167d..dc7c81036 100755 --- a/gulliver/thirdparty/propel/Propel.php +++ b/gulliver/thirdparty/propel/Propel.php @@ -598,9 +598,13 @@ class Propel { */ public static function close() { - foreach(self::$connectionMap as $conn) { - $conn->close(); - } + $last = ''; + foreach(self::$connectionMap as $conn) { + if ($last != $conn->lastQuery) { + $conn->close(); + } + $last = $conn->lastQuery; + } } /** diff --git a/workflow/engine/classes/class.wsTools.php b/workflow/engine/classes/class.wsTools.php index d08de26de..1faa86914 100755 --- a/workflow/engine/classes/class.wsTools.php +++ b/workflow/engine/classes/class.wsTools.php @@ -83,6 +83,13 @@ class workspaceTools $final = $stop - $start; CLI::logging("<*> Updating Content Process took $final seconds.\n"); + $start = microtime(true); + CLI::logging("> check Mafe Requirements...\n"); + $this->checkMafeRequirements($workSpace, $lang); + $stop = microtime(true); + $final = $stop - $start; + CLI::logging("<*> Check Mafe Requirements Process took $final seconds.\n"); + $start = microtime(true); CLI::logging("> Updating cache view...\n"); $this->upgradeCacheView($buildCacheView, true, $lang); @@ -96,13 +103,6 @@ class workspaceTools $stop = microtime(true); $final = $stop - $start; CLI::logging("<*> Backup log files Process took $final seconds.\n"); - - $start = microtime(true); - CLI::logging("> check Mafe Requirements...\n"); - $this->checkMafeRequirements($workSpace, $lang); - $stop = microtime(true); - $final = $stop - $start; - CLI::logging("<*> Check Mafe Requirements Process took $final seconds.\n"); } /**