After some more testing clearstatcache() seems to be enough.