1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

WP Super Cache plugin and Gzip enabling

Discussion in 'WordPress' started by Romson, Oct 28, 2010.

  1. #1
    Hi All,

    I have wp super cache installed and gzip supported via my host.

    I have "enable compression" on, but when i check on:

    http://www.gidnetwork.com/tools/gzip-test.php

    It says GZIP is not enabled.

    I have allready tried to enable gzip via MySQL into 1 in the wp_options table, but every time my site is opened it just goes back to 0

    How do i make this work?
     
    Romson, Oct 28, 2010 IP
  2. numbskull

    numbskull Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would suggest you to try W3 Total Cache plugin. A lot more features and very advanced.
     
    numbskull, Oct 28, 2010 IP
  3. Romson

    Romson Active Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thansk NumbSkull,

    But i would like to know how i get gzip enabled to work with wp super cache.
     
    Romson, Nov 1, 2010 IP
  4. numbskull

    numbskull Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Add this code to your functions.php

    function enable_gzip() {
    <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

    }
     
    numbskull, Nov 1, 2010 IP
  5. Romson

    Romson Active Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Thanks for that NumbSkull
     
    Romson, Nov 9, 2010 IP