vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Board Optimization - vB AJAX Cron (https://vborg.vbsupport.ru/showthread.php?t=123719)

Code Monkey 04-07-2007 01:29 AM

Did you import the product xml file in your ACP?

ultimo 04-07-2007 05:05 AM

Yep i did.

Code Monkey 04-07-2007 02:20 PM

Without a website to look at there is not much anyone can do for you.

MAXpowerPXL 04-26-2007 06:33 AM

Sweet, thanks!

Installed on 3.6.5, works great.

Sometimes I feel real sorry for developers answering so many repeated/stupid questions.

vgevolution 06-05-2007 09:44 PM

Awesome! Working fine in 3.6.7 PL1. I can tell my pages are loading faster, plus it fixed a nagging cron not found bug in a couple of hacks I have. Thanks for this! :D

993ti 06-10-2007 10:32 PM

Wow, is it me or did the pages load faster on my board?
Thanks for a great mod CM ;)

alessai 06-10-2007 10:53 PM

so dose it make the forum faster ? safer ? or lighter ?

cant understand all that punsh of words

993ti 06-10-2007 10:56 PM

Quote:

Originally Posted by Code Monkey (Post 1050316)
Currently, when vb needs to run a sheduled task, it loads image code at the bottom of your forum page. Except it has a php file as the src of the img tag. This causes the php file to run which in turn runs the next scheduled task. This can, depending on the cron to run and the size of the site, cause a browser to seemingly hang until the script is finished running. This happens because this is a syncronous event. Meaning, it's waiting for the page to finish loading the image.

This mod replaces that with an asyncronous AJAX call to the cron script.

The image code has served vb well but with the advent of AJAX type methods there is a cleaner way to do it. That's what this does.

And it did make my board faster.
Btw, does this also work if there are no users browsing the board?
The standard VBcron doesn't work without users browsing the site :(

Code Monkey 06-19-2007 04:15 AM

Quote:

Originally Posted by 993ti (Post 1265813)
And it did make my board faster.
Btw, does this also work if there are no users browsing the board?
The standard vBcron doesn't work without users browsing the site :(

It should work with any guest viewing that has javascript enabled. Other than that there has been a request for years for server cron versions of all the default scheduled task at vBulletin.com.

Code Monkey 06-19-2007 04:17 AM

Quote:

Originally Posted by alessai (Post 1265810)
so dose it make the forum faster ? safer ? or lighter ?

cant understand all that punsh of words

It makes a background task asynchronous rather than synchronous which will return the visitors control of their browser sooner and therefor be seemingly faster to the user.

talenak 06-27-2007 07:41 AM

My members often post in help that they post and it hangs, then they get tired of waiting, click go advanced, and everything processes.

I'm taking a leap of faith and guessing that this might help that situation a little because your description of the page hanging is exactly what they describe.

Do I have the right idea or am I off track? I don't really "get" it, I'm just curious if I'm at least guessing in the right direction. lol

Thanks!

Code Monkey 06-29-2007 04:15 PM

A lot of things can cause that. I can tell you that it is unlikely that this mod will cause new problems and if that is the problem it will be fixed. It could also be hosting issues, the end users connection and b/w.

Mecho 07-09-2007 10:39 AM

hi , sorry for my dum question .. i installed this one but would u plz tell me how can i be sure that it works in my site ?

thx

Edit : Top Process %CPU 14.0 httpd [www.domain.com] [/forum/clientscript/vb_ajax_cron.js]


!!! any idea ??

Code Monkey 07-13-2007 02:42 PM

If all your crons are being run then it works. Or you can get Firebug for Firefox and actually see it work.

Fenriz 10-01-2007 03:25 AM

With this hack I have a java script error on vbdrupal pages (IE 6,7 browser). Code Monkey, could you resolve this issue please.

Code Monkey 10-01-2007 03:46 PM

Not enough info. I don't use vbdrupal so I would have no idea.

Fenriz 10-02-2007 01:10 AM

It seems just need to comment the execution of this hack on vbdrupal pages (like <if condition="!(THIS_SCRIPT == 'drupal')"> ... </if>). But what exactly?

ewelin 01-03-2008 08:19 PM

installed on 3.6.8 Patch Level 2 and appears to be working quite well.

joshbond 01-19-2008 09:03 PM

There seriously needs to be some kind of instructions on how to install this thing.
Whats that code for too?

redlabour 01-29-2008 04:58 PM

Does it work with 3.7 ?

Code Monkey 02-04-2008 05:29 AM

Quote:

Originally Posted by redlabour (Post 1431843)
Does it work with 3.7 ?

Still working on my dev forum at 3.7 so yes it should work just fine.

ArnyVee 04-19-2008 01:39 PM

I just need a little direction to make sure that I'm doing this right.

Do I upload the ajax_cron.php file into the folder that includes the ajax.php and cron.php files? Do I then upload the clientscript folder into the same area? What if there's another folder with clientscript already? Or, do I put the contents (vb_ajax_cron.js) of the folder into the same clientscript folder that already exists?

I'm a newb, only been around code for about a month. :)

ru55ian 04-21-2008 03:47 PM

installed on 3.6.8 works fine.

ArnyVee 04-21-2008 05:53 PM

I'd really like to have this working on my site. Can anyone help me with the info two posts ago (Post #142) of this thread?

I appreciate it.

Code Monkey 04-22-2008 05:27 AM

Just unzip the files to your local hard drive with the directories intact. Then open the folder that says it's contents need to be uploaded to your forum home. Highlight all the contents including the clientscript directory and drag them to your forum home directory in your ftp program. That's your forums home directory not your front page directory if you have one and it's different. Directories that are uploaded will merely merge their files with any directories that already exist in that path with the same name.

Hope that helps

ArnyVee 09-14-2008 12:57 PM

Is this still functional in 3.7?

dbembibre 10-14-2008 01:03 PM

Hey code_monkey, any diference (WRT performance) in execute vBCron with your script that execute vBCron with cron service available in the server ?

BigJohnny 03-07-2009 03:10 AM

It doesnt seem to be working correctly in 3.8.1 . Ive checked my scheduled tasks log and the last things run were on the 1st of march when I installed it.

I dont have any entries since then.

I dont really know whats going on.

J11089A792A0 02-13-2011 10:41 PM

Is this still functional in 4.1.1 ??! if no where I can found this hak work with vb 4.1.1 ?! pls !?

lukescotty 04-19-2012 10:55 PM

not working on my 4.1.1 i want a working on too. it just messes up my template

cheers

Max Taxable 01-13-2014 02:21 AM

Disregard - sorted.

pl804 12-15-2015 03:20 PM

Do I still need this, or has the issue of the hanging page loads gone away with more recent browser versions?


All times are GMT. The time now is 12:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01281 seconds
  • Memory Usage 1,781KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete