Mercurial > hgrepos > hgweb.cgi > s4
changeset 131:9782a978d53c
Image cach detection method modified
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 14 Aug 2015 21:37:29 +0900 |
parents | 2601a0a70b0b |
children | 7a9cd078bf6a |
files | s4-funcs.sh |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Tue Aug 11 08:40:14 2015 +0900 +++ b/s4-funcs.sh Fri Aug 14 21:37:29 2015 +0900 @@ -576,7 +576,7 @@ #file=$td/$val file=$td/`query "select val from $cond $slice;"` # FOR SPEED: Skip file generation if imgcache exists - [ -s $file -a -s $td/$fn.rowid ] && continue + [ -s $file -a -s $td/$fn.rowid -a -s $file.rowid ] && continue # err gvbid-get="select quote(bin) from $cond $slice;" sq $db<<EOF | unhexize > $file .output $td/$fn.rowid @@ -588,7 +588,7 @@ .output stdout select quote(bin) from $cond $slice; EOF - # err gvbid-get2: "`ls -lF $file`" + ## err gvbid-get2: "`ls -lF $file`" ## err i=$i - file=$file rowid=`cat $td/$fn.rowid` cp $td/$fn.rowid $file.rowid 2>&3 # for convenience cp $file $file.orig 2>&3 @@ -1480,6 +1480,8 @@ fi if [ ! -d $dir ]; then mkdir -p $dir + fi + if [ ! -s $dir/$deficon ]; then convert -geometry $thumbxy $imgdir/$deficon $dir/$deficon fi if [ -n "$2" ]; then