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.

Ziki 01-20-2009 11:23 AM

To explain this easier,usually when you load a website,the server waits till the whole website is loaded and then it displays it to the user,but using flush (); , it will be displayed part by part so it appears faster.

Leo Brazil 01-20-2009 12:58 PM

Hi Ziki, it makes sense but why he says this is specially for SEO users ?

My question may sound stupid but just trying to get the connection between flush() and SEO.

Tks

mahakala 01-20-2009 03:57 PM

Quote:

Originally Posted by Leo Brazil (Post 1718947)
Hi Ziki, it makes sense but why he says this is specially for SEO users ?

My question may sound stupid but just trying to get the connection between flush() and SEO.

Tks

i haven't tested it in a non-seo vb - thats all ;) i changed the code above, should work now on all versions.


All times are GMT. The time now is 07:14 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.01107 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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