vBulletin Modifications

Board Optimizations - vB AJAX Cron

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Not Supported
[vB 3.5.5] Board Optimizations - vB AJAX Cron (87)
Released: 08-11-2006, 10:16 PM
Modification Information:
Code Monkey's Avatar Author: Code Monkey
Last Online: 11-28-2007
Demo: View Online Demo!
Hack Version: 1.1.4 Installer Included: 1 Additional queries added to database: 0
New Templates: 1 Template Edits: 0 File Edits: 0
New Files: 2 New Phrases: 0 Installation Time (In Minutes): 1

vB 3.6.0 Compatible!
Plugin
vB AJAX Cron From vBModder.com

This is such a small but useful mod that I decided to give it away free. This mod will replace your sheduled task image code at the bottom of your pages and run your sheduled tasks via an AJAX call.

AJAX is asyncronous and offers true background running of sheduled tasks. This does not change anything with the actual tasks or the scripts that run them. It merely replaces the method that initiates the running of those scripts.

There are no template edits of any kind. Simply upload the files to your forumhome directory and import the product xml file. Both 3.5x and 3.6x xml files are included. Make sure you use the right one as there are changes in crons with 3.6x.

This should work in any vb or custom script in any directory.
Support will only be given at vbmodder.com


Enjoy




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 08-17-2006, 03:48 AM   #11
vB Newbie
Join Date: Aug 2006
Neo_obs is on a distinguished road

Default

will this run crons even if the forum has no users or if the forum is closed?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-17-2006, 11:22 AM   #12
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

No, someone has to load a page it activate it just like vbcron.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-17-2006, 02:21 PM   #13
vB Lover
takiye's Avatar
Join Date: Aug 2006
takiye is on a distinguished road

Default

"your sheduled task image code at the bottom of your pages"
=> What is it? monkey, please tell me.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-17-2006, 10:00 PM   #14
vB Newbie
Join Date: Jul 2006
deadhobo is on a distinguished road

Default

Thanks, this is a cool hack but just difficult to detect any sort of performance difference. Regardless, its a nifty feel-good at the least.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 12:26 AM   #15
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

You have to test it on a test forum where you will get all the cron hits. The bigger the user database the longer some crons run.

One person at vBORG has stated that the image cron has never worked on his server and jelsoft could never answer why. It works now with this so it's a good thing.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 12:30 AM   #16
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

New version 1.1.2

Added ajax_cron_start hook. Now if you should ever have a plugin that uses the cron_start hook simply change it to use the ajax_cron_start hook.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 02:26 AM   #17
vB Newbie
Join Date: Aug 2006
Neo_obs is on a distinguished road

Default

do you know of anyway I can get a cron to run while my site is offline?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 02:50 AM   #18
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

For that you need a server cron. However, you would have to do some serious hacking of the vb files to get them to run outside the vb environment.

It's been a topic of discusion for some time because the image code was a pain.

However, if your site is offline what crons does it need to run?

Most of them update views and such. No views when your offline.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 11:28 PM   #19
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

New Version 1.1.3

Now it will just use cron_start hook if you have a plugin that uses it. Aparently vb doesn't actually care where the hook is located.

Live and learn.

Code Monkey




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 01:14 PM   #20
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

New Version 1.1.4

This will now degrade gracefully when browsers have javascript turned off. When a browser has javascript turned off the default vb method will be implemented to ensure the cron runs.

Code Monkey




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



LinkBacks (?)
LinkBack to this Thread: http://www.vbhackers.com/f76/board-optimizations-vb-ajax-cron-4809/
Posted By For Type Date
Statistics for vbmodder.com (2006-10) This thread Refback 10-27-2006 02:37 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrating AJAX Technology Into Your Modifications Zero Tolerance vBulletin Modification Tutorials 3 08-28-2006 10:30 AM
vB 3.0+hacks & vB 3.5 Safice General vBulletin Support 2 03-08-2006 07:01 AM
Combine yahoogroups list with vB forum laureen vBulletin Modification Requests 0 08-01-2005 11:48 PM


All times are GMT -3. The time now is 08:18 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)