WeBWorK Problems

refresh cached images

refresh cached images

by Darwyn Cook -
Number of replies: 1
I am writing a problem where the ranges on the horizontal and vertical axes depend on student inputs. I found this old thread started by nandor that suggests a fix. I ended up using a modified version of his code:
$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.

In reply to Darwyn Cook

Re: refresh cached images

by Alex Jordan -
Not sure if it was just a typo in this post, but it should be
$refreshCachedImages= 1;
not
$refreshCashedImages= 1;

Even so, I see Firefox cache images anyway. One way to deal with this is to enter Private Browsing with File -> New Private Window.