Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question