I use the following statement to dynamically add data:

customPlot->graph(i)->addData(customPlot->graph(i)->dataCount(), Y0.dequeue());

It can run normally in a short time. But if it takes more than half an hour, severe freezes will occur.
I paused to check the curve and found that the data curve from a long time ago still exists.
Is there a way to clean up the cache every ten minutes?

Thank you very much!