3

I have created a custom plugin, the job of which is to calls an external API to fetch data and fill in some custom tables in WordPress database.

This is really a long-running process (maybe over 30 minutes) and for that, I also have updated the php.ini configuration file accordingly. But somehow the process is failing in a time interval (around 240 seconds).

While debugging this issue I found this strange thing that - the process is failing only when the popular plugin Yoast SEO is activated otherwise the job is finishing without any issues.

Another thing to mention is in each time interval of around 240 seconds the process is being re-initiated again and again.

Is there anything that Yoast SEO is blocking or any workaround of this problem?

  • 3
    Have you asked Yoast about this? – Martin Jarvis Aug 2 '18 at 13:52
  • No, not yet. Should I contact Yoast support? – Sunny Batabyal Aug 3 '18 at 5:29
  • 1
    That might help, yes. They might be able to respond quite quickly if it's something they know about. – Martin Jarvis Aug 5 '18 at 20:58
  • Yoast guys didn't provide support for custom code. Hence, Any solutions? – Sunny Batabyal Sep 6 '18 at 14:42
  • 30 minutes is a really long time for a process to be running. There is a big chance of having other processes queued up whilst waiting for it to finish. Is it possible to arrange it to run via a cron job that repeats every few minutes but only processes a portion of the data each time? – Martin Jarvis Sep 7 '18 at 15:43

Your Answer

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

Browse other questions tagged or ask your own question.