S
S
siroper2020-05-25 02:23:07
PHP
siroper, 2020-05-25 02:23:07

How to run phpquery with ajax via cron?

Hello.

Prompt please, who faced. I have an online store supplier parser with about 200 categories and 8,000 products.
The supplier is so bad that he does not provide unloading, we will not even talk about it.

The bottom line is that I made a phpQuery parser (+ curl authorization), it takes a long time to parse, it takes about an hour to do everything about everything. Accordingly, cron is out of the question. if used without ajax, then the script will go to 504 gateway time-out

But the whole thing starts only if you open the page in the browser (it starts working <script>ajax.....</script>). But how to run this business through cron?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Baskakov, 2020-05-25
@dmitrybascacov

In theory, it should work like this:
- create a script
- put it on cron via php path/to/file.php
If there are any problems during execution, then you put more script execution time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question