Forums / Install & configuration / Administration interface and mod_gzip

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/