$in=time();
$gr->gifName($gr->gifName()."$in");
Anyways, in the thread John suggests that
$refreshCashedImages= 1;
will also work in webwork 2, but I couldn't get it to work in 2.4.5 using Firefox (didn't try other browsers). Not an issue since there is a workaround, just thought I would point it out.