Title: Exclude only parent page
Last modified: October 18, 2020

---

# Exclude only parent page

 *  [justiin](https://wordpress.org/support/users/justiin/)
 * (@justiin)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/exclude-only-parent-page/)
 * Is it possibe to only exclude the parent page but not the subpages?
 * example.com/parentpage (No cache)
    example.com/parentpage/subpage (Cached)

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/exclude-only-parent-page/#post-13549339)
 * You could write an mu-plugin or add code to your theme that sets the constant
   DONOTCACHEPAGE so the page isn’t cached when the URL matches the parent.
 *  Thread Starter [justiin](https://wordpress.org/support/users/justiin/)
 * (@justiin)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/exclude-only-parent-page/#post-13549362)
 * That would be great! Is here a documentation from? I would like to add it to 
   my theme.

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

The topic ‘Exclude only parent page’ 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

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

 * 2 replies
 * 2 participants
 * Last reply from: [justiin](https://wordpress.org/support/users/justiin/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/exclude-only-parent-page/#post-13549362)
 * Status: not resolved