Please make sure to backup all necessary files before performing edits.

-------------------------

Please do NOT do the following tip if you use the subscription manager - payment validations will not return properly to your site because the url is not valid. This tip can also cause other similar problems.

Open ./index.php:
(Around Line 295)

****
Find:
*****

Code: 
//===========================================================================
//  Set up the session ID stuff
//===========================================================================

if ( $ipsclass->session_type == 'cookie' )
{
    $ipsclass->session_id = "";
    $ipsclass->base_url   = $ipsclass->vars['board_url'].'/index.'.$ipsclass->vars['php_ext'].'?';
}
*****
Replace With:
*****

Code: 
//===========================================================================
//  Set up the session ID stuff
//===========================================================================

if ( $ipsclass->session_type == 'cookie' )
{
    $ipsclass->session_id = "";
    $ipsclass->base_url   = 'index.php?';
}
-------------------------

Open ./init.php:
(Around Line 90)

*****
Find:
*****

Code: 
define( 'CUSTOM_ERROR', 1 );
*****
Replace With:
*****

Code: 
define( 'CUSTOM_ERROR', 0 );
-------------------------

| Create New PHP File |
./style_images/gzip-css.php

*****
Contents:
*****

Code: 
<?php
ob_start ("ob_gzhandler");
header("Content-type: text/css; charset: UTF-8");
header("Cache-Control: must-revalidate");
$offset = 60 * 60;
$ExpStr = "Expires: " .
gmdate("D, d M Y H:i:s",
time() + $offset) . " GMT";
header($ExpStr);
?>
-------------------------

| Create New PHP File |
./style_images/.htaccess

*****
Contents:
*****

Code: 
AddHandler application/x-httpd-php .css (EDIT: This breaks CSS on version 2.3.x)
php_value auto_prepend_file gzip-css.php
php_flag zlib.output_compression On
This code does 3 things:

1 - The first line tells Apache to send all .css files to the PHP script handler.
2 - The second line prepends the code snippet to your CSS file.
3 - Optional: The third line tells PHP to use its built-in negotiated output compression automatically for every page it parses. If you use this method for compression, there is no need for having ob_start ("ob_gzhandler"); in the code snippet. So choose one or method or the other...

Full Source


-------------------------

ACP > Look & Feel > Skins & Templates > Skin Manager > *SKIN* > Edit Settings
(Second Section - CSS Options)

*****
Find:
*****

Cache CSS to text files?

*****
Change To:
*****

Yes

-------------------------

-OPTIONAL-

The following edit CAN actually decrease your board speed in certain instances, especially with larger boards.

In addition, some hosts do not allow (or like) persistant connections being enabled. If you are contacted by your host for resource consumption and/or your board is slowed down after following this tutorial - please disable persistant connections FIRST.


Open ./ips_kernel/class_db.php:
(Around Line 87)

*****
Find:
*****

Code: 
"persistent" => "0" ,
*****
Replace With:
*****

Code: 
"persistent" => "1" ,
-------------------------

If you experience any problems with these edits, revert back.
Lease Reviewed by Lease on . [TUT]Invision Power Board Optimization Please make sure to backup all necessary files before performing edits. ------------------------- Please do NOT do the following tip if you use the subscription manager - payment validations will not return properly to your site because the url is not valid. This tip can also cause other similar problems. Open ./index.php: (Around Line 295) **** Rating: 5