My setup goes like this. I’m having a timed buying period let’s say for 10 hours. I want to gather data in 15 minute periods and update my database to effect the price for the next 15 minutes and so on. Would I need to use cron jobs for this? Or is there another route I could take? Thanks.
Share
You can also refresh it yourself and use a timer in your browser to refresh the file every fifteen minutes
or
you may put this cron file to a high trafficked website where a visitor will trigger the cron.
both are fairly easy to setup. Cron would run irregardless of anything and even if your file isn’t there the cron will run. But with the other methods you would require the file to be there and and run the cron. One disadvantage is that you would need the page to be open in a browser all the times for the refresh to take place. So it would be better if you have a cron setup. Although page refresh is as easy as doing a meta refresh. One way could be to have an iframe with that cron refreshing every few seconds. This would mean that if there are 100 people online on your website then the cron would be constantly updated by 100 people at set time intervals and even if one page is not loaded properly then there are still other 99 people who have the cron running in an iframe.