[Hosting] Flush rewrite rules when resetting staging

Every time I reset the staging site I have to go to the Permalinks settings to re-save, in order to avoid 404 errors everywhere. It would be nice if this could be automatic.