Mercurial > hgrepos > hgweb.cgi > s4
changeset 793:5d73f47cb1a9 feature-world
Trivial error fixed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 13 Jun 2020 20:26:36 +0900 |
parents | e086e07dfc9c |
children | 8448724f69e3 |
files | s4-blog.sh |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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