s4

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 diff
     1.1 --- a/s4-blog.sh	Thu Mar 02 16:24:10 2017 +0859
     1.2 +++ b/s4-blog.sh	Thu Mar 16 08:05:58 2017 +0859
     1.3 @@ -257,8 +257,9 @@
     1.4      if test -s "$stampfile" &&
     1.5  	  test -s "$cachefile" &&
     1.6  	  { ts=`cat "$stampfile"`; test -n "$ts"; } &&
     1.7 -	  test "$ts" '>' "$tm"; then
     1.8 -      : Nothing to do
     1.9 +	  test "$ts" '>' "$tm" &&		# Cache timestamp is newer
    1.10 +	  test "$stampfile" -nt "$icon"; then	# UserIcon is older
    1.11 +       : Nothing to do
    1.12      else
    1.13        {		######## New ROW creation begins here ######## >$cachefile
    1.14  	tdcls="__NEWCLS__repatt"