We are updating several scene layers on our portal with python scripts, and at the moment we need to manually go to the web-page to rebuild the Cache each time our scripts are done running.
Is there any methods in either pure ArcGIS API (with Requests etc.) or with the arcgis package for python to do this?
As of right now the only way to automate this is to create a scheduled task. Support for scene services was added at ArcGIS Enterprise 10.9 release. As of right now this is not supported in ArcGIS Online but I will double check with the team to see when that will be implemented.