WordPress.org

Ready to get started?Download WordPress

Forums

Google Affiliate Network
Site Lag and and 103 Error (4 posts)

  1. barterjoe
    Member
    Posted 1 year ago #

    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/

  2. Robert Heller
    Member
    Plugin Author

    Posted 1 year ago #

    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).

  3. Robert Heller
    Member
    Plugin Author

    Posted 1 year ago #

    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 468x60 banner ad unit calling for 4 banners and if you have 10 merchants / advertisers, but only 2 have 468x60 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 468x60 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.

  4. Robert Heller
    Member
    Plugin Author

    Posted 1 year ago #

    Are you still having problems?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.