Title: page cache &#8211; exclude subdirectory
Last modified: September 3, 2016

---

# page cache – exclude subdirectory

 *  [Gloak](https://wordpress.org/support/users/gloak/)
 * (@gloak)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/page-cache-exclude-subdirectory/)
 * Hi, I need to exclude one full plugin files and pages from caching.
 * We have this in the “Never cache the following pages:”:
 * > Always ignore the specified pages / directories
 * What is the right structure to add this to that field? As t appears in the cpanel?
   
   public_html/wp-includes/plugin/…. ?
 * Thanks!
    -  This topic was modified 9 years, 8 months ago by [Gloak](https://wordpress.org/support/users/gloak/).
    -  This topic was modified 9 years, 8 months ago by [Gloak](https://wordpress.org/support/users/gloak/).

Viewing 1 replies (of 1 total)

 *  [Ashok](https://wordpress.org/support/users/bappidgreat/)
 * (@bappidgreat)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/page-cache-exclude-subdirectory/#post-8147795)
 * Hello [@gloak](https://wordpress.org/support/users/gloak/)
 * This is what I get from Performance > FAQ:
 * > Which textareas for file entries support regular expressions?
   > Page Cache: Never cache the following pages, Cache exception list, Non-trailing
   > slash pages
   >  Database Cache: Never cache the following pages CDN: Custom file
   > list, Rejected files The CDN fields only support regular expression on the 
   > filename. Examples (Never cache the following pages):
   > Do not cache page/directory and sub pages /directory*
   >  Do not cache pages under
   > a directory /directory/.+ Do not cache pages that contain specific text /.*
   > text.* Do not cache pages that is named child in directories .+/child Do not
   > cache any pages named child */child Note: To disable page caching of specific
   > theme templates or plugin files you need to add define(‘DONOTCACHEPAGE’, true);
   > to it.
 * It should always start relative to public_html directory. So I think correct 
   structure should be:
 *     ```
       /wp-includes/plugin/….
       ```
   
 * Have a good day!
 * Cheers
    Ash

Viewing 1 replies (of 1 total)

The topic ‘page cache – exclude subdirectory’ is closed to new replies.

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

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Ashok](https://wordpress.org/support/users/bappidgreat/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/page-cache-exclude-subdirectory/#post-8147795)
 * Status: not resolved