View Single Post
  #10 (permalink)  
Old 07-18-2008, 10:54 AM
NewsHeatDotCom NewsHeatDotCom is offline
New Pligger
 
Join Date: Feb 2007
Location: Atlanta, GA
Posts: 23
Thanks: 1
Thanked 6 Times in 6 Posts
Smile

You are actually multiplying 300*5 in your code giving you 1500 seconds or 25 minutes. I'd say the best way to do this so it is still configurable from the admin control panel is by changing the 3600 constant to 60 seconds (1 minute)

PHP Code:
//While $feed->feed_freq_hours reads hours,
//it would actually be referring to minutes in this case
} elseif ( ( (time() - ($feed->feed_freq_hours 60)) > strtotime($feed->feed_last_check) ) && ($_GET['override'] == '') ) { 
Once you've made that change you would just setup the time as you normally would for each feed in the control panel, just use minutes instead of hours for the time between imports.
I haven't tested this, but I'm pretty sure it should work.
__________________
Pligg Site: www.NewsHeat.com
Slogan: Where The Campaign Trails Meet
Pligg Version: beta v9.9 (updated since 9.1)
Template: Modified "coolwater"
Other Sites: Cheesy Movie Night, Tranquil Aggression

Top 10 Worst Big Screen Horror Movies of 2008
Reply With Quote
The Following User Says Thank You to NewsHeatDotCom For This Useful Post: