Mercurial > hgrepos > hgweb.cgi > s4
diff s4-blog.sh @ 793:5d73f47cb1a9 feature-world
Trivial error fixed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 13 Jun 2020 20:26:36 +0900 |
parents | e9e86a1fc1f3 |
children | 12a567f00744 |
line wrap: on
line diff
--- a/s4-blog.sh Sat Jun 13 18:19:13 2020 +0900 +++ b/s4-blog.sh Sat Jun 13 20:26:36 2020 +0900 @@ -126,7 +126,7 @@ td=`getcachedir "article/$2"` [ -d "$td" ] || mkdir -p $td tbl=${1%%[!A-Z0-9a-z_]*} rowid=${2%%[!A-Z0-9a-z_]*} - err blow_showentry: rowid=$rowid, '$2'=$2 user=$user + err blog_showentry: rowid=$rowid, '$2'=$2 user=$user ts=${tbl}_s tm=${tbl}_m at=article as=article_s am=article_m serial=$(($(date +%s)-1420038000))s$$ @@ -481,7 +481,7 @@ echo "</td></tr>" } > "$cachefile.$$" ######## New ROW Creation Ends here ######## # Care about race condition - if [ -s $cachefile -a $cachefile -nt $cachestamp ]; then + if [ -n "$hte" -a -s $cachefile -a $cachefile -nt $cachestamp ]; then # If other process have created cache, give up to serve our file rm -f $cachefile.$$ else