Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Added core_compress_API.php which provides optional support for co…
…mpression. This option improves performance but it is OFF by default since it requires PHP 4.0.4. 2. Make use of the compression APIs in View Bug Advanced, View Bug Simple, and View Bugs. More pages will be integrated later. 3. Disabled the debug timer (left the normal time). We should avoid leaving debugging code committed, since some people make use of the latest CVS and hence it would be good to avoid needing them to change in the code. 4. In the view bugs, a select statement was executed for each bug to retrieve the latest modification time for the bugnotes. Disabled the execution of this query in case the number of bugs is 0. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1098 f5dc347c-c33d-0410-90a0-b07cc1902cb9
- Loading branch information
Showing
8 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
# Starts the buffering/compression (only if the compression option is ON) | ||
# This method should be called after all possible re-directs and access | ||
# level checks. | ||
function start_compression() { | ||
global $g_compress_html; | ||
|
||
if ( ON == $g_compress_html ) { | ||
ob_implicit_flush( 0 ); | ||
ob_start( 'ob_gzhandler' ); | ||
} | ||
} | ||
|
||
# Stop buffering and flush buffer contents. | ||
function stop_compression() { | ||
global $g_compress_html; | ||
|
||
if ( ON == $g_compress_html ) { | ||
ob_end_flush(); | ||
ob_implicit_flush(); | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters