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 wrap: on
line diff
--- a/s4-blog.sh	Wed Feb 08 12:11:08 2017 +0900
+++ b/s4-blog.sh	Wed Feb 08 12:24:18 2017 +0900
@@ -282,6 +282,8 @@
 		<a href="$catlink+$mrid"><img src="$outfile">
 		$fnb</a>
 		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 \
@@ -301,7 +303,6 @@
 	      ;;
 	  esac
 	done
-	date "+%F %T" > $stampfile
 	echo "</td></tr>"
       } > "$cachefile"	######## New ROW Creation Ends here ########
     fi

yatex.org