• 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 8 years, 2 months ago by Gloak.
    • This topic was modified 8 years, 2 months ago by Gloak.
Viewing 1 replies (of 1 total)
  • Ashok

    (@bappidgreat)

    Hello @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.