Is there any way to make program for update posts automatically in wordpress [closed]

So i’am an intern and my boss ask me to find a better solution to update posts automatically with program. Why? because any post before get update getting so long to access (timeout). when it updated it becomes normal. hence my boss told me to find solution rather manually clicking update button post by post
Screenshot of Update’s button

I tried using POST request or PUT request with JWT authentication it not changing anything. I also tried changing comment_status from open to closed just to make it look like “updating” but no result.