Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Make RSS Feed Checking More Frequent Details »»
Make RSS Feed Checking More Frequent
Version: 1.00, by Dan Druff Dan Druff is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.1.12 Rating:
Released: 06-27-2012 Last Update: Never Installs: 6
Re-useable Code Code Changes  
No support by the author.

This modification adds options for checking RSS feeds more frequently than every 10 minutes.

You will now have the option to set RSS feeds to be checked every 2 minutes or 5 minutes, in addition to the existing options of 10 minutes and up.

This is mostly done through minor source code edits.

First, edit includes/class_dm_rssfeed.php

Search for:
Code:
                        case 600: // every 10 minutes
... and add IMMEDIATELY AFTER...
Code:
                        case 300: // every 5 minutes
                        case 120: // every 2 minutes

Next, edit admin/rssposter.php

Search for:
Code:
                600  => construct_phrase($vbphrase['x_minutes'], 10),
... and add IMMEDIATELY BEFORE:
Code:
                120  => construct_phrase($vbphrase['x_minutes'], 2),
                300  => construct_phrase($vbphrase['x_minutes'], 5),
That's it! Now you will have the option in the RSS Feed Manager to add feeds to be checked every 2 or 5 minutes. You can also go back to your existing feeds and change them to be checked every 2 or 5 minutes.

One more thing... you will have to modify the RSS Poster Robot settings in the Scheduled Tasks, or the feeds still won't be checked more frequently than once every 10 minutes.

To do this, go to the Admin Control Panel, select Scheduled Task Manager, and then click Go under RSS Poster Robot.

Make sure Days of the Month, Days of the Week, and Hour are all set to *. Then go change the first column of Minute also to *. The result should look like the below attachment.

Screenshots

File Type: png rssposter.png (27.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-11-2013, 10:12 AM
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lee Roberts View Post
Ok i think i have worked it out, it looks as though vB seems to only support 65535 so call it 18 hours, anything above that it just inserts "65535" into the ttl.
The table that need to be changed is rssfeed
Reply With Quote
  #13  
Old 06-11-2013, 10:15 AM
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way, if you want generally increase the frequency of reading feeds, it could be done much more simple without editing the php scripts or database.

Just change the frequency of RSS Poster Robot in Scheduled Task Manager.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09685 seconds
  • Memory Usage 2,239KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete