s4

changeset 404:084a4d35c98f

Create row stamp ONLY WHEN imgcache is active
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 08 Feb 2017 12:24:18 +0900
parents 3ea86fe63490
children 6244bbb72400
files s4-blog.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-blog.sh	Wed Feb 08 12:11:08 2017 +0900
     1.2 +++ b/s4-blog.sh	Wed Feb 08 12:24:18 2017 +0900
     1.3 @@ -282,6 +282,8 @@
     1.4  		<a href="$catlink+$mrid"><img src="$outfile">
     1.5  		$fnb</a>
     1.6  		EOF
     1.7 +		# !!NOTE!! Create row stamp ONLY WHEN imgcache is active
     1.8 +		date "+%F %T" > $stampfile
     1.9  	      else
    1.10  		query "SELECT hex(bin) FROM article_m WHERE rowid=$mrid;" \
    1.11  		    | unhexize \
    1.12 @@ -301,7 +303,6 @@
    1.13  	      ;;
    1.14  	  esac
    1.15  	done
    1.16 -	date "+%F %T" > $stampfile
    1.17  	echo "</td></tr>"
    1.18        } > "$cachefile"	######## New ROW Creation Ends here ########
    1.19      fi