• Is there any way to have the pages cache but still allow my dynamically called banners to rotate randomly on the page? The WP plugin I’m using for my banners is actually being cached and banners won’t rotate until the cache time is up.

    Other banner plugins are okay, but I really like the one I’m using. Just wondering if there was any way to place a set of HTML comment tags around the banner area to have WP Super Cache omit caching in a certain area on the page.

    Thanks for your help. I really appreciate it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Yup, this is a FAQ in the readme.txt or in the plugin documentation on this site.

    Thread Starter ashworth102680

    (@ashworth102680)

    Awesome. I must have missed this when I was reviewing it earlier today. I’ll give it another look-over. Thank you for the reply 🙂

    Thread Starter ashworth102680

    (@ashworth102680)

    Yeah, unless I’m misunderstanding something, I don’t see a way for me to omit caching around a certain portion of the page. I only see that I can exclude a full page from being cached.

    I’ve checked the readme.txt and this URL:
    http://ocaoimh.ie/wp-super-cache-developers/

    You should read http://wordpress.org/extend/plugins/wp-super-cache/faq/
    and specifically “How do I make certain parts of the page stay dynamic?”

    Thread Starter ashworth102680

    (@ashworth102680)

    I’ve tried everything I can think of. Maybe I’m just doing it wrong. Basically the pages are caching, but it caches with the ads area (the dynamic area) empty as white space. If I turn caching off (disable plugin) my ads magically appear again.

    FILE: sidebar.php

    <!--mclude ads-right.php-->
    <?php include_once( 'ads-right.php' ); ?>
    <!--/mclude-->

    FILE: ads-right.php

    <?php
    wp125_write_ads();
    ?>

    LINK: Screenshot of cache settings
    http://content.screencast.com/users/…/

    The function “wp125_write_ads()” is probably not defined. You need to enable the late init feature, see the FAQ linked above, “How do I delay serving the cache until the “init” action fires?”

    Thread Starter ashworth102680

    (@ashworth102680)

    Looks like that didn’t do it either. Maybe I’m just using a banner ad plugin that’s not compatible LOL

    Thread Starter ashworth102680

    (@ashworth102680)

    Actually, with the init setting active, I notice if I don’t use mfunc with an include file and go back to what I had originally…

    <?php wp125_write_ads(); ?>

    …it looks like it’s caching and doing the banners randomly, keeping everything within view with no white space this time. I’ll watch it today to see if I notice anything weird, but it looks like it’s working this way.

    Thread Starter ashworth102680

    (@ashworth102680)

    Grr. I was wrong. I thought they were swapping out randomly, but they aren’t. They’re just static again and don’t change until the cache clears with that method.

    Feel free to check out the site. When I view source I see it caching this way, but the banners aren’t swapping. But if I go back to the mfunc method (even with init setting =1) it just shows white space after the cache generates.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WP Super Cache] Ignore specified area on page?’ is closed to new replies.