Caching & Ads

Discussion in 'LiteSpeed Cache' started by ShannonA, Apr 2, 2014.

  1. ShannonA

    ShannonA Member

    So I think I've got the LiteSpeed cache all set & ready to go with our vBulletin, but I've got one niggling problem: my ad system is running in PHP, and I'd like that to run anew every page, to record impressions and to choose new ads.

    Any idea for how to keep our PHP ads dynamic on an otherwise cached page?
  2. NiteWave

    NiteWave Administrator

    if the ads code is put in iframe, should be ok
  3. ShannonA

    ShannonA Member

    Yep, that was my initial theory when I was first muddling over this, but unfortunately we run Google Adsense, and it doesn't behave well in iFrames.
  4. NiteWave

    NiteWave Administrator

    I checked one your website forum...net, the ads is load from javascript. so the lsws page cache won't affect ads' impressions at all.
  5. ShannonA

    ShannonA Member

    It's actually a mix. Everything loads from PHP, but some of what loads is JavaScript, to bring in some of our partners.

    The answer is probably that I just need to rewrite our ad system in JavaScript. I was just hoping for something easier.

Share This Page