Scandal
Well-known member
I have this problem that needs solution / idea:
Well, we need to run a cron job every less than 60 seconds OR to run a code on every page load.
This code will check if there are some records on a database table and if yes will make a CURL request and then clear the table. If new records exists on next check, then again a CURL and clearing the table etc.
If we run it on every page load, of course on the most times no CURL will triggered but I have a suspicion that in case the CURL triggering, it will affect seriously on page load time (big delay to return the page to visitor).
What do you suggest for this case?
Basically, does the cron job system of XF2 running on the same page request a visitor do (= so again delay on page load cause the CURL) ?
I think the vBulletin software was using a "fake" image load, that basically triggers the cron job.
If XF2 do the same, I could extend the main class of cron core so my code will run by the cron side on every page load.
Let me know what you think.
Well, we need to run a cron job every less than 60 seconds OR to run a code on every page load.
This code will check if there are some records on a database table and if yes will make a CURL request and then clear the table. If new records exists on next check, then again a CURL and clearing the table etc.
If we run it on every page load, of course on the most times no CURL will triggered but I have a suspicion that in case the CURL triggering, it will affect seriously on page load time (big delay to return the page to visitor).
What do you suggest for this case?
Basically, does the cron job system of XF2 running on the same page request a visitor do (= so again delay on page load cause the CURL) ?
I think the vBulletin software was using a "fake" image load, that basically triggers the cron job.
If XF2 do the same, I could extend the main class of cron core so my code will run by the cron side on every page load.
Let me know what you think.