Title: Custom Loop not refreshing with new Posts
Last modified: August 20, 2016

---

# Custom Loop not refreshing with new Posts

 *  [aaron.lane](https://wordpress.org/support/users/aaronlane/)
 * (@aaronlane)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/custom-loop-not-refreshing-with-new-posts/)
 * Hello,
 * We have a custom theme using a custom page template containing a custom loop 
   on a page called News & Events to display the 10 most recent blog posts. Our 
   homepage (home.php) also displays the 3 most recent blog posts. Our Reading Settings
   are set to ‘Front Page Displays: Your latest posts’.
 * WP Super Cache works as expected on all Pages (automatically clearing the respective
   page cache when a change is made to the page) except on the News & Events page.
   When we create a new Post, the News & Events page cache isn’t automatically rebuilt.
   Instead, we continue to see a cached version of the News & Events page.
 * We’ve run into the exact same issue using W3 Total Cache and just can’t seem 
   to figure out how to force the News & Events page cache to refresh when we create
   a new post. We suspect it has to do with our custom Loop, but aren’t sure how
   to go about either 1) fixing our custom loop or 2) forcing WP Super Cache to 
   refresh the News & Events page when a new post is made. We want to avoid using
   the “Clear all cache files when a post or page is published or updated” option
   at all costs.
 * Our WP Super Cache settings are ‘checked’ as follows:
    - Cache hits to this website for quick access
    - Use mod_rewrite to serve cache files
    - Compress pages so they’re served more quickly to visitors
    - Cache rebuild. Serve a supercache file to anonymous users while a new file
      is being generated
    - Extra homepage checks
 * Thanks,
    Aaron
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [aaron.lane](https://wordpress.org/support/users/aaronlane/)
 * (@aaronlane)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/custom-loop-not-refreshing-with-new-posts/#post-3233759)
 * Hello again,
 * Does anyone know how to specify a specific page’s cache to be cleared on post
   publish/update?
 * Thanks,
    Aaron

Viewing 1 replies (of 1 total)

The topic ‘Custom Loop not refreshing with new Posts’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

## Tags

 * [custom loop](https://wordpress.org/support/topic-tag/custom-loop/)

 * 1 reply
 * 1 participant
 * Last reply from: [aaron.lane](https://wordpress.org/support/users/aaronlane/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/custom-loop-not-refreshing-with-new-posts/#post-3233759)
 * Status: not resolved