mahakala
01-17-2009, 10:00 PM
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:
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
Product: vBulletin
Hook: parse_templates
Title: Flusher
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