Search code examples
phphostingcrondedicatedbetfair

cron after every 15 sec


I cannot set cron time to less than 1 minute even on my dedicated server. I need it to run every 15 seconds because it calls betfair api and calculations are highly time dependent. Please advise.


Solution

  • Cron only lets you run things as fast as once a minute.

    What I would do is do the 15 second timings inside your script.

    • Execute a parent script once a minute.
    • Execute children scripts every 15 seconds within that script before it exists and a new cycle begins.