Okay, figure I'd post what I've found out. The actual line of code I need is this one in import_fields_center.tpl:
PHP Code:
} elseif ( ( (time() - ($feed->feed_freq_hours * 3600)) > strtotime($feed->feed_last_check) ) && ($_GET['override'] == '') ) {
This is the second half of a If...Then statement and says what to do if the user is not attempting an override of the time feature. Let's break it down:
time() = a php function equal to the number of seconds since 1/1/1970.
$feed->feed_freq_hours = how frequently the feed should be grabbed.
*3600 = creates a value in seconds.
Thus for example, the first part with constants might look like
(1198368000 - (1 * 3600))
Which in turn reduces down to:
(1198364400)
Okay, now the second half:
strtotime($feed->feed_last_check) = Grabs the value and changes it into a time that the feed was last checked.
&& ($GET['override'}=='' = Says that this only occurs if there is no override of the time functionality.
We don't need to pay attention to most of it, just boil it down to:
1198364400 > last_check.
Let's say just for argument that the check was ten minutes before the current time:
1198364400 > 1198363800
Its not true. This is because we subtracted an hour from now to find our next check time but only ten minutes from the last check.
So, let's say I want to make it check every five minutes, I would do this:
(time() - ($feed->feed_freq_hours * 300))
300 = 60 * 5.
Thus we are only subtracting five minutes from the current time, allowing it to run every five minutes.
Thats all for now folks. Let me know if you have questions!
David.