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)
-   -   Forum Display Enhancements - Faster Board view (https://vborg.vbsupport.ru/showthread.php?t=202252)

mahakala 01-17-2009 10:00 PM

Faster Board view
 
Add a new Plugin with the following parameters to display the most pages much faster (NEEDS SEO or vbSEO or code changes*):

Product: vBulletin
Hook: parse_templates
Title: Flusher
PHP-Code:
PHP Code:

if (headers_sent()) {
ob_start();
ob_implicit_flush(1);
flush();
ob_flush();
                    }
else if (
preg_match("/ebdl|image|do=|dateline/i",$_ENV['REQUEST_URI']) || isset($_ENV['QUERY_STRING']) || isset($_POST)) { }
else {
ob_start();
ob_implicit_flush(1);
flush();
ob_flush();
         } 

That's all. Hope you could need it.

*The main problem with this hack is, that all headers must be send or errors occure (headers already send...). I use vbSEO, so i could figure out (querystring) when there are probably header changes. For nonSEO try the headers_send()-version and see, what happens.
Maybe someone has a better solution ;)

Regards,
Thomas

sensimilla 01-18-2009 08:51 PM

Sounds cool, Ill wait until someone test it :)

mahakala 01-18-2009 09:08 PM

it's plugin - you could deactivate it with one click if it don't work. just try it.

ssslippy 01-18-2009 10:14 PM

What exactly does this do?

mahakala 01-18-2009 10:34 PM

it faster flushes out the content, so page is faster displayed. see php.net/flush

Arved Yagami 01-19-2009 04:48 AM

I have vbSEO, I'll give a try.

Thanks for the plugin.

Arved Yagami 01-19-2009 04:54 AM

Ok, this really improved speed in my board. O_o
Thanks a lot, waiting for more of your mods =)

I'm not a coder, so how does exactly this work?

BTW. I'm using vB 3.8.0

mahakala 01-19-2009 06:13 AM

Quote:

Originally Posted by Arved Yagami (Post 1717497)
Ok, this really improved speed in my board. O_o

nice to read :):cool::D

Quote:

Originally Posted by Arved Yagami (Post 1717497)
I'm not a coder, so how does exactly this work?

easyly said: normaly the board parses internaly (serverside) the code and then put it out to the browser. this little hack now tells the board to put out (flush) the code while still calculating. (sorry my bad english)

Leo Brazil 01-19-2009 08:54 AM

I'm gonna try it, let's see how it goes.

Edit: Tested and it really makes page views faster.

sensimilla 01-20-2009 11:10 AM

Seem its really working. Anyway it does no harm :) Thanks . Installed.


All times are GMT. The time now is 11:15 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.01608 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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