vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   GZIP being more selective (https://vborg.vbsupport.ru/showthread.php?t=38591)

Pilot 05-13-2002 03:59 PM

GZIP being more selective
 
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.


All times are GMT. The time now is 03:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00955 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete