Ads not changing?

Discussion in 'Co-op Advertising Network' started by E Doc Tong, Jun 1, 2005.

  1. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #41
    Yep.. takes roughly 4 days for an ad to be in full deployment, and 4 days to be "un" deployed as well because of the caching mechanism.
     
    digitalpoint, Jun 1, 2005 IP
  2. E Doc Tong

    E Doc Tong Peon

    Messages:
    111
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #42
    Sorry - I'm being a bit dumb - how does an ad get un-deployed (removed) from the cache? is it a 'rolling' cache file (FIFO) or something?

    It looked like the cache just grows and the ads are taken at random from all the ads in the cache - from what you've said, that obviously isn't the case.

    Please excuse the stupid questions. I'll take your word for it, just interested....
     
    E Doc Tong, Jun 1, 2005 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #43
    It's a rolling cache... it will grow until it reaches 400 ads, then start rolling.
     
    digitalpoint, Jun 1, 2005 IP
  4. E Doc Tong

    E Doc Tong Peon

    Messages:
    111
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #44
    ah - got it.

    if (count ($ads) > $ads_temp[3] + 1)
    $ads = array_merge ((array)$ads[0], (array)array_slice ($ads, -$ads_temp[3]));

    I was making some wrong assumptions about how you would do that...

    Thanks for the explanation :)
     
    E Doc Tong, Jun 1, 2005 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #45
    Yep.. most people would have no idea what that part does, but right... that's exactly what it's for. In English... "After we just got a new ad, if there more than how many we want, we'll slice off the 400 newest and keep just those."
     
    digitalpoint, Jun 1, 2005 IP