Commit e3061fe4 authored by anne munoz's avatar anne munoz Committed by Adam Wujek

www: [BUG #1528] cache wrs_version

wrs_version value cached
parent 4cb8cb7b
......@@ -19,6 +19,10 @@ if(empty($_SESSION["KCONFIG"])){
load_kconfig();
}
if(empty($_SESSION["WRSVERSION"])){
$_SESSION["WRSVERSION"] = shell_exec("/wr/bin/wrs_version -g");
}
// Forms are firstly generated by default, but can be modified by users.
$WRS_TABLE_INFO = Array (
......
......@@ -1005,7 +1005,7 @@ function wrs_display_help($help_id, $name){
$message = "<p>This is a switch console emulator windows. Use it as if you were using a ssh session.</p>";
} else if (!strcmp($help_id, "gateware")){
$msg = shell_exec("/wr/bin/wrs_version -g");
$msg = $_SESSION["WRSVERSION"];
$msg = explode("\n", $msg);
$message .= "<ul>";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment