changeset 422:a868a34ca3bc

Do not use article cache when user-icon is newer than cache.
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 16 Mar 2017 08:05:58 +0859
parents d3bf2e95c0cc
children 21785d5da373
files s4-blog.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Thu Mar 02 16:24:10 2017 +0859
+++ b/s4-blog.sh	Thu Mar 16 08:05:58 2017 +0859
@@ -257,8 +257,9 @@
     if test -s "$stampfile" &&
 	  test -s "$cachefile" &&
 	  { ts=`cat "$stampfile"`; test -n "$ts"; } &&
-	  test "$ts" '>' "$tm"; then
-      : Nothing to do
+	  test "$ts" '>' "$tm" &&		# Cache timestamp is newer
+	  test "$stampfile" -nt "$icon"; then	# UserIcon is older
+       : Nothing to do
     else
       {		######## New ROW creation begins here ######## >$cachefile
 	tdcls="__NEWCLS__repatt"

yatex.org