vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Do scheduled tasks still cause page loads to hang? (https://vborg.vbsupport.ru/showthread.php?t=321098)

pl804 12-15-2015 03:39 PM

Do scheduled tasks still cause page loads to hang?
 
I noticed back in 2006-07, there were several discussions of behavior where the footer pixel that triggers scheduled tasks caused some browser to hang while the task was being executed.

The best explanation I read was from Analogpoint (who unfort hasn't posted here since 2007):

Quote:

vBulletin has a great, built-in scheduled task system. It relies on an invisible pixel image output on the bottom of the forum pages to run the scheduled tasks (cron jobs). It works like this: When a user visits a page, vB checks to see if there are any pending cron jobs to execute. If there are, the cron image is inserted at the bottom of the page. That image, instead of displaying a real image, actually calls the scheduled task script which first returns the image, then proceeds to execute the scheduled task. This setup can cause the page load to hang, depending on what browser you're using. vB goes to great lengths to send the content-length header, then flush the image data to the browser. This causes some browsers to stop loading the page even though the script isn't finished running (it has to execute the cron job), since the data returned matches the content-length header. However, not all browsers are that smart. Sometimes they sit there with whatever indicator they have spinning, saying the page is still loading, until the scheduled task has finished.
Several options appeared to address this (including an AJAX modification by CodeMonkey), but then around 2010-11 or so, the discussions tailed off.

I've pinged those threads, but I'm curious if anyone here knows whether this is still an issue? I'm hoping that with current browser versions, this issue has hopefully been resolved.

Thanks in advance.

Dave 12-15-2015 03:58 PM

I have never encountered such thing since I started using vBulletin (4).

Dragonsys 12-15-2015 04:47 PM

that was an issue with vb3, vb4 does not have this problem that I have ever seen. Do you really need to ask this in several posts?

Max Taxable 12-15-2015 04:49 PM

Personally I never saw this issue with v3 either. Obviously it was a issue though.

Dragonsys 12-15-2015 04:58 PM

Quote:

Originally Posted by Max Taxable (Post 2560539)
Personally I never saw this issue with v3 either. Obviously it was a issue though.

I did, with some of the non-mainstream browsers.
IMO, if you want to use a plugin which would resolve this, i would use this one (https://vborg.vbsupport.ru/showthread.php?t=164477) instead of the others which you posted on.

Max Taxable 12-15-2015 05:06 PM

Quote:

Originally Posted by Dragonsys (Post 2560540)
I did, with some of the non-mainstream browsers.
IMO, if you want to use a plugin which would resolve this, i would use this one (https://vborg.vbsupport.ru/showthread.php?t=164477) instead of the others which you posted on.

I didn't post on any.

Dragonsys 12-15-2015 07:43 PM

Quote:

Originally Posted by Max Taxable (Post 2560542)
I didn't post on any.

I meant the OP ;)

pl804 12-15-2015 09:31 PM

Thanks for the tip, Dragonsys. If this isn't an issue for the top 3-4 browsers, then I think we are ok w/o a plug-in to remediate this.

Apologies for pinging the legacy threads and creating this one. I created this one b/c the legacy threads were dormant for quite awhile, and also fairly deep in the forum hierarchy.

Appreciate any further confirmation from other members here re: whether anyone is seeing this with Chrome, Safari, FF, or IE/Edge.

Dragonsys 12-15-2015 10:41 PM

I use the plugin I linked anyway, as it moves it into server cron, so slow boards still complete scheduled tasks on time.


All times are GMT. The time now is 08:03 AM.

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.01075 seconds
  • Memory Usage 1,731KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete