Annotation of parser3/tests/cache/ok.log, revision 1.1
1.1 ! moko 1: === no cache yet, 20 requests at once, 3 times: the code runs once each time, the others wait for it
! 2: 20 first
! 3: 20 first
! 4: 20 first
! 5: the code ran: 3
! 6: === the cache has expired, 20 requests at once, 3 times: one renews it, the others get the old copy meanwhile
! 7: 1 new
! 8: 19 old
! 9: 1 new
! 10: 19 old
! 11: 1 new
! 12: 19 old
! 13: the code ran: 3
! 14: === the same with $.extend(0): the others wait for the new copy
! 15: 10 new
! 16: 10 new
! 17: 10 new
! 18: the code ran: 3
! 19: === the cache has expired more than $.extend seconds ago [the page is requested seldom]: the others wait for the new copy
! 20: 10 new
! 21: 10 new
! 22: 10 new
! 23: the code ran: 3
! 24: === the code fails when the cache is renewed: the old copy is given for $.extend seconds, then the cache is renewed
! 25: generation failed
! 26: old
! 27: new
! 28: the code ran: 2
! 29: === the code runs longer than $.extend: the next request renews the cache too, the one who ends later writes the copy
! 30: old
! 31: renewed
! 32: long
! 33: long
! 34: the code ran: 2
! 35: === the copy has expired, the other process renews it under the lock: the request waits for it, then renews the cache itself [the holder did not]
! 36: new
! 37: waited
! 38: the code ran: 1
! 39: === the file is cut: not given
! 40: renewed
! 41: the code ran: 1
! 42: === the new copy is written in place of the longer one: the file is cut to it
! 43: short
! 44: short
! 45: the file is cut
! 46: the code ran: 1
E-mail: