Title: Prevent Cache on given Page?
Last modified: August 30, 2016

---

# Prevent Cache on given Page?

 *  Resolved [ralphonz](https://wordpress.org/support/users/ralphonz/)
 * (@ralphonz)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/prevent-cache-on-given-page/)
 * 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/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/prevent-cache-on-given-page/#post-6622064)
 * sure, using the API. there’s example code in [autoptimize_helper.php_example](http://plugins.svn.wordpress.org/autoptimize/trunk/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](https://wordpress.org/support/users/ralphonz/)
 * (@ralphonz)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/prevent-cache-on-given-page/#post-6622066)
 * 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](https://wordpress.org/support/users/ralphonz/)
 * (@ralphonz)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/prevent-cache-on-given-page/#post-6622069)
 * 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](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/prevent-cache-on-given-page/#post-6622108)
 * 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.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)

 * 4 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/prevent-cache-on-given-page/#post-6622108)
 * Status: resolved