# HG changeset patch # User HIROSE Yuuji # Date 1489619185 -32373 # Node ID a868a34ca3bc4ef2480ff4cd644f06ad57357c66 # Parent d3bf2e95c0cc1c60ec84a7fcbc984fd38b345f04 Do not use article cache when user-icon is newer than cache. diff -r d3bf2e95c0cc -r a868a34ca3bc s4-blog.sh --- 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"