Administration interface and mod_gzip

Author Message

Marek W

Saturday 30 April 2005 11:33:25 am

Hello!

Is it possible to enable mod_gzip module (or any other compression module / method) on administration interface pages?

Best regards!

kracker (the)

Sunday 01 May 2005 3:33:10 am

hrm,

I seem to remember that there might have been references to it in the index.php

I saw this in a almost nothing to see here move along silence from all my go no where goole ez.no searches ...

http://www.ez.no/bugs/view/5417

I'd wager a guess that eZ publish does have support in there (index.php/base classes) for mod_gzip to all of eZ publish not just the administrator.

How compatible that is or simple to use or how it breaks .. (eek) I'd love to hear ...

//kracker
<i>or so they say from the top of the bottom ...</i>

atmosphere: god loves ugly ...

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Sunday 01 May 2005 3:51:38 am

and don't forget all those classes supporting it ...

eZForwardCompressionHandler	: Handles files compressed with gzip
eZGZIPCompressionHandler	: Handles files compressed with gzip
eZGZIPShellCompressionHandler	: Handles files compressed with gzip using the shell commands
eZGZIPZLIBCompressionHandler	: Handles files compressed with gzip using the zlib extension

from the eZ publish api documentation:
http://pubsvn.ez.no/doxygen/classeZGZIPCompressionHandler.html
http://pubsvn.ez.no/doxygen/annotated.html (search list for gzip related components)

i think it's called with something like "ob_gzhandler", these child links show example implementations to using this functionality (in part):
http://www.google.com/search?hl=en&q=site%3Apubsvn.ez.no+ob_gzhandler&btnG=Google+Search

It's funny they are both parts from the same extension but they do two things well in different places (not sure wuwt?) neways .. one uses a ini setting and another uses apache / php configuration variable state detection / checking.

I think the best would be to combine both of these methods for flexibility, are the features supported, does the settings call for it.

I finally found the threads I was thinking of ... see bard's pointing out of the obvious ;)
http://www.ez.no/community/forum/install_configuration/very_poor_performance_after_installing_ezp_323_on_verio_server_cache_is_on#msg40892
http://www.ez.no/community/forum/install_configuration/very_poor_performance_after_installing_ezp_323_on_verio_server_cache_is_on
http://www.google.com/search?hl=en&lr=&q=site%3Aez.no+ob_gzhandler&btnG=Search
http://no2.php.net/manual/en/function.ob-gzhandler.php

//kracker

eminem : criminal

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Marek W

Sunday 01 May 2005 5:00:41 am

Thanks for reply, I've changed

ob_start();

in index.php to:

if ( strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') )
{
  if ( extension_loaded('zlib') )
  {
    ob_start("ob_gzhandler");
  }
}
else {
  ob_start();
}

And it works ;) We will see how long ;)

Xavier Dutoit

Sunday 01 May 2005 7:46:29 am

I'm using mod_gzip and it works too. Havent benchmarked against ob_handler.

Have you considered submit your fix to ez to inclusion (maybe with a ini setting) ?

X+

http://www.sydesy.com

Marek W

Tuesday 03 May 2005 2:58:52 am

OK, will try to look at it...

Marek W

Tuesday 03 May 2005 7:04:17 am

Here you go :)

http://ez.no/bugs/view/6589

kracker (the)

Tuesday 03 May 2005 8:13:39 am

Slick, Thanks!

I think this has merit and should be given consideration for inclusion into eZ publish 3.

I think it's funny, this feature was in 2.x, I wonder why they (eZ sys) has omitted it from 3.x?

Will they consider the feature now? or justify (or explain) it's exclusion?

You can cut the anticipation with a ... wait!?
How do you cut a immaterial abstract?

//kracker

Rebirth Of Cool Phive - 03 - Karmacoma (Portishead Experience) - Massive Attack

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:33:21
Script start
Timing: Jan 18 2025 19:33:21
Module start 'layout'
Timing: Jan 18 2025 19:33:21
Module start 'content'
Timing: Jan 18 2025 19:33:21
Module end 'content'
Timing: Jan 18 2025 19:33:21
Script end

Main resources:

Total runtime0.0184 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.0391152.6406
Module start 'layout' 0.00770.0035 740.679739.4922
Module start 'content' 0.01120.0050 780.171997.4922
Module end 'content' 0.01620.0022 877.664142.3047
Script end 0.0184  919.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002915.6415140.0002
Check MTime0.00126.3565140.0001
Mysql Total
Database connection0.00179.444210.0017
Mysqli_queries0.003217.493430.0011
Looping result0.00000.098410.0000
Template Total0.00179.210.0017
Template load0.00095.065010.0009
Template processing0.00084.091910.0008
Override
Cache load0.00073.582010.0007
General
dbfile0.00052.643880.0001
String conversion0.00000.055640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs