# HG changeset patch # User HIROSE Yuuji # Date 1486526000 -32400 # Node ID 6244bbb7240042a22ddb3f216abb74f19fab97b1 # Parent 084a4d35c98f92f23d400af2d44eba3287d6d617 Remove cache time stamp only when img data stream sent diff -r 084a4d35c98f -r 6244bbb72400 s4-blog.sh --- a/s4-blog.sh Wed Feb 08 12:24:18 2017 +0900 +++ b/s4-blog.sh Wed Feb 08 12:53:20 2017 +0900 @@ -246,6 +246,7 @@ fi fi + date "+%F %T" > $stampfile # Cache time stamp(is here good?) cat< $picon${edit:+編集 }#$aid @@ -283,7 +284,6 @@ $fnb EOF # !!NOTE!! Create row stamp ONLY WHEN imgcache is active - date "+%F %T" > $stampfile else query "SELECT hex(bin) FROM article_m WHERE rowid=$mrid;" \ | unhexize \ @@ -295,6 +295,7 @@ -e "s|^|$fnb|" # [ -d $td ] || mkdir -p "$td" + rm -f "$stampfile" # img data stream is not suitable to cache echo $tm > $tsfile fi ;;