WordPress.org

Support

Support » Plugins and Hacks » Google Affiliate Network » Site Lag and and 103 Error

Site Lag and and 103 Error

  • I have been running into errors since installing the GAN plugin. It could be related more to the brute force attacks at GoDaddy (April 2013)but after installing the P3 performance plugin I found the GAN plugin is using over 60% of the load time for pages. many times on my site the page times out.

    I have images of the graphs here:
    Graph 1
    Graph 2

    Please let me know if there is something I am doing wrong. Thank you.
    Joe

    http://wordpress.org/extend/plugins/google-affiliate-network/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Robert Heller

    @robertpheller

    Are there a lot of ad units per page? Are you displaying *lots* of ads per ad unit? Note: if you have a *small* number of merchants / advertisers and are displaying *lots* of ads per ad unit, the code could be looping trying to avoid displaying duplicate ads or multiple ads from the same merchant / advertiser. You should have more merchants / advertisers than the number of ads per ad units and should not have too many ad units per page (probably not more than 2-3, preferably of different sorts — text vs banner or different sized banners).

    Plugin Author Robert Heller

    @robertpheller

    The GAN_Server loop is most efficient when the number of merchants / advertisers with at least one compatible ad exceeds the number of ads specified for an ad unit. The GAN_Server loop will loop though the merchants / advertisers just once. If the number of ad requested for the ad unit is greater than the number of merchants / advertisers with compatible ads, it will loop though the merchants / advertisers ad many times as needed to fill the ad unit. Thus if you only have two merchants / advertisers and have an ad unit with 6 ads, it will loop though the merchant / advertiser list 3 times, with two inner loop cycles per outer loop cycle.

    Note: if you have merchants / advertisers who don’t have compatible ads (compatible: banner size or banner vs. text) it will still do lookups (possibly multiple lookups) with those merchants / advertisers — this will take time. If you have a 468×60 banner ad unit calling for 4 banners and if you have 10 merchants / advertisers, but only 2 have 468×60 banner ads, the ad server (GAN_Server.php) will loop through all 10 merchants / advertisers twice, that is it will make 20 MySQL lookups, 16 of which will return in empty results. You would either need to reduce the number of ads displayed in this ad unit or get 468×60 banner ads for more of the merchants / advertisers.

    It is possible that you have set the number of ads in one or more of your ad units too high (too many ads per unit). You can try reducing the number of ads per ad unit.

    Plugin Author Robert Heller

    @robertpheller

    Are you still having problems?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site Lag and and 103 Error’ is closed to new replies.
Skip to toolbar