Mercurial > hgrepos > hgweb.cgi > s4
changeset 800:12a567f00744 feature-world
Cache creation logic fixed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 14 Jun 2020 11:33:02 +0900 |
parents | e516626923f7 |
children | 1de1319dce99 |
files | s4-blog.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-blog.sh Sun Jun 14 11:19:04 2020 +0900 +++ b/s4-blog.sh Sun Jun 14 11:33:02 2020 +0900 @@ -481,7 +481,7 @@ echo "</td></tr>" } > "$cachefile.$$" ######## New ROW Creation Ends here ######## # Care about race condition - if [ -n "$hte" -a -s $cachefile -a $cachefile -nt $cachestamp ]; then + if [ -z "$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