Cron Job- Response data too big

Post Reply
DadOfZelda
Observer
Observer
Posts: 19
Joined: Mon Jun 25, 2018 8:23 pm
Location: Sollebrunn, Sweden
Station model: Davis Pro 2 Plus
Software: Meteohub
Contact:

Cron Job- Response data too big

Post by DadOfZelda » Wed Aug 07, 2019 6:35 pm

Hi,

I use cron-job.org to run my crons.

I now receive this status error: Response data too big for the http://weathersite/template/update/update.php script.

FAQ on cron-job.org says that script that takes longer time then 30s will be terminated. One workaround is to use the PHP function ignore_user_abort(true) to tell PHP to continue the script execution after disconnection.

I think I should add ignore_user_abort(true); to the script, but not know where in the script.

Anyone else that has had the same problem. Or know where to add the line in the script?

My database has data for almost one year.

Appreciate all help or input :-)

All the best
/Christian
Image

Post Reply