How to stop execute file in wordpress server
I have created a custom plugin that updates the product price in woocommerce using API and created a json file to show a progressbar which sends the progress information to the file when the button is clicked. The file cannot be closed until it is complete, causing the old progressbar and the new progressbar file to be called when the user clicks the button multiple times, causing problems with the progress bar.