Graphs Fusioncharts in scriptcase don't refresh data

Hello,
I’ll summarize a problem I encountered on my server with graphs that I solved using scriptcase.

I had a problem refreshing graphs when filtering values ​​for search fields.

We’ve determined that it’s a server cache issue.

On the Canadian scriptcase servers, the system administrators solved the problem by working with the server cache at the Nginx level (disabling it).

On the production servers in Italy, this issue wasn’t resolved by disabling the Nginx cache.

To resolve it, we worked on the individual graphs and inserted the following line of code into the onScriptInit event:
$_GET[‘t’] = time();

This ensures that each graph generation is unique and this prevents the use of the cache, allowing the graph to update the data.

I hope this helps someone.

Regards
Vincenzo

1 Like