I have to run a php function for around 10 minutes. Now I am sheduling the job as a wp-cron-job. But it is getting timed out after 30seconds which is the maximum execution time for php. How to get rid of this timeout issue?


In my opinion function that works 10min is not a best idea. Can You maybe refactor Your function or simply try to build batch processing?

My favorite article about that: https://pippinsplugins.com/batch-processing-for-big-data/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.