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 diff
1.1 --- a/s4-blog.sh Sun Jun 14 11:19:04 2020 +0900 1.2 +++ b/s4-blog.sh Sun Jun 14 11:33:02 2020 +0900 1.3 @@ -481,7 +481,7 @@ 1.4 echo "</td></tr>" 1.5 } > "$cachefile.$$" ######## New ROW Creation Ends here ######## 1.6 # Care about race condition 1.7 - if [ -n "$hte" -a -s $cachefile -a $cachefile -nt $cachestamp ]; then 1.8 + if [ -z "$hte" -a -s $cachefile -a $cachefile -nt $cachestamp ]; then 1.9 # If other process have created cache, give up to serve our file 1.10 rm -f $cachefile.$$ 1.11 else