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/

eZ debug

Timing: Jan 18 2025 22:20:22
Script start
Timing: Jan 18 2025 22:20:22
Module start 'content'
Timing: Jan 18 2025 22:20:22
Module end 'content'
Timing: Jan 18 2025 22:20:22
Script end

Main resources:

Total runtime0.7023 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.8516180.8203
Module start 'content' 0.00660.5864 768.6719647.7266
Module end 'content' 0.59300.1092 1,416.3984341.0625
Script end 0.7022  1,757.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5645210.0002
Check MTime0.00150.2120210.0001
Mysql Total
Database connection0.00080.115310.0008
Mysqli_queries0.620288.31422110.0029
Looping result0.00180.26322090.0000
Template Total0.673895.920.3369
Template load0.00190.268020.0009
Template processing0.671995.679420.3360
Template load and register function0.00010.018010.0001
states
state_id_array0.00180.252510.0018
state_identifier_array0.00140.193520.0007
Override
Cache load0.00170.2429610.0000
Sytem overhead
Fetch class attribute can translate value0.00100.144840.0003
Fetch class attribute name0.00090.1339100.0001
XML
Image XML parsing0.00170.245840.0004
class_abstraction
Instantiating content class attribute0.00000.0058120.0000
General
dbfile0.00440.6203350.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs