• Resolved ralphonz

    (@ralphonz)


    Hi,

    Is there a way t stop autoptimize from caching a certain page? The page in question is an archive page for a custom post type (events).

    I’ve written a custom query for the page using WP_Query but the results don’t update and I see old events in the list unless i clear autoptimize cache.

    https://wordpress.org/plugins/autoptimize/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Goossens

    (@futtta)

    sure, using the API. there’s example code in autoptimize_helper.php_example 🙂

    but I’d be surprised this is AO, actually, I’d rather suspect a page caching plugin to be complicating things here?

    frank

    Thread Starter ralphonz

    (@ralphonz)

    Great, thanks frank. That was the quickest response I’ve ever had on a wordpress support thread!

    Wordfence caching is also active on the site which I’d forgotten about so maybe that is complicating matters…

    Thread Starter ralphonz

    (@ralphonz)

    I added the filter to not optimise by URL. But it actually seems like it might be my browser (safari 9). If i just click the events link in my wordpress menu i see old events. If reload the page I see only future events. Keeps happening every time I click the menu item though, I see old events in the list. Weird.

    Plugin Author Frank Goossens

    (@futtta)

    I would indeed suspect the browser cache or wordfence caching to be to blame. Try disabling wordfence caching and try with another browser (or with an empty cache)?

    frank

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Prevent Cache on given Page?’ is closed to new replies.