I need to import a lot of products to Prestashop using XML from external API. Our shared hosting has Max_Execution_Time
set to 300s. The problem is adding images to products in Prestashop is very time consuming and 300s is not enough to add all the products with images in one execution time.
My plan to deal with it is to set up a cron job that will call the script every 10 minutes or so and let the script work for limited amount of time.
Is my approach correct or is there another, better standard for doing it?
I couldn't find the answer to my problem anywhere else.