Updated race cond handling for member badges gen
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 3 Jan 2017 21:48:09 +0000 (16:48 -0500)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 3 Jan 2017 21:48:09 +0000 (16:48 -0500)
commit14e2f8b8e4ac6afae1f20af100538daad2f581b5
tree2485959a70a2fe84f7cd24458f094664f29b521d
parentbdb653a5bc300d4cd595ebc71a692eb3cf23e353
Updated race cond handling for member badges gen

This change removes the universal 0.5 second sleep prior to querying the
database about the membership since date.

Instead, the process now goes right ahead with the query. It sleeps for
2 seconds if the first query did not succeed, then it re-attempts the
query a second time and continues on as before.

This should cost less time on average while catching more race
conditions with the longer conditional sleep.
memberdashboard.php