PDA

View Full Version : GZIP being more selective


Pilot
05-13-2002, 03:59 PM
Gizp output improves response times greatly with my rather remote server. Unfortunately at busy periods it kills the CPU and I have had to turn it off.

What I want is a way to have it partially on. One or more of these:

1 - On when CPU load is under xx % and automatically Off above that to stop the CPU meltdown.

2 - On all the time for admin/moderators and maybe members and OFF for guest users.

3 - On by particular user or forum or whatever.

I think option 2 might be easy to hack - is there a script where the GIZP CP option is examined and I could easily add a test for usergroup? Can someone code this up (I am not a PHP man).

Thanks. The main aim is to let me have GZIP on for key users even if all the users can't have it on as the CPU gets overloaded.

dslteam
05-13-2002, 06:08 PM
why do you want to turn the GZIP off for the guests ???

Pilot
05-13-2002, 06:15 PM
Because my CPU gets overloaded. If 40% of my users are guests I can reduce the effect GZIP is having by 40% BUT still give the members the improved response times.

Half a loaf is better than nothing. At present no-one can benefit as the CPU load is too high, I want some of the users to have it, but not all (to conserve the server resources).

Pilot
05-14-2002, 02:37 PM
Come on - can't someone give me a clue where this is coded?

I mean have you experienced the repsonse time improvement with GZIP - it is really worth having, but for all users it may kill your server (it did mine).

Pilot
06-03-2002, 12:57 PM
PLEASE help on this guys - I can see the GZIP code in the functions.php - but I am no hacker - BUT I can imagine it would only be a one line change to check for a certain user groupid before allowing GZIP to proceed.

This way moderators could get the speed of GZIP without killing the server by all users having it! Think about it - this would help a lot of you out there.