Documentation:WeBWorK/How to refresh the cached image PG problem

From UBC Wiki

Issue

WeBWorK can generate the graphs the first time the code runs, but it cannot refresh the graphs when the code is modified. When using another account to open the same problem, the modified graphs are shown but are not refreshed after further changes

Solution

Adding:

   $refreshCachedImages = 1; 

in the pg source code of the homework question that has the dynamically generated graph.