s4
changeset 736:1ab3cc61a462
Temporary disable variable cache'ing for joingrp()
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 03 Jun 2020 21:33:25 +0900 |
parents | 98702a1251cd |
children | 441768a11b84 |
files | s4-funcs.sh |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/s4-funcs.sh Tue Jun 02 07:52:04 2020 +0900 1.2 +++ b/s4-funcs.sh Wed Jun 03 21:33:25 2020 +0900 1.3 @@ -676,10 +676,12 @@ 1.4 getpar() { 1.5 # err GETPAR=$1, _user=$_user 1.6 val="" 1.7 - case "$1" in # Dirty cache mechanism for high-load average 1.8 - user) val=$_user ;; 1.9 - skey) val=$_skey ;; 1.10 - esac 1.11 + if false; then # 2020/6/3 Temporary disabled for joingrp() 1.12 + case "$1" in # Dirty cache mechanism for high-load average 1.13 + user) val=$_user ;; 1.14 + skey) val=$_skey ;; 1.15 + esac 1.16 + fi 1.17 val=${val:-`query "select val from par where var='$1' and sessid='$session' $2;"`} 1.18 ## err getpar/val1: "val=[$val]" 1.19 if [ -z "$val" ]; then