WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] W3 Total Cache - How To Exclude A URL From Being Cached (5 posts)

  1. jimmygba
    Member
    Posted 4 years ago #

    Hi,

    I'm using
    WP 2.9.1
    W3 Total Cache: Version: 0.8.5.2

    I'm already using a translation plugin so my site structure is:
    http://abc.com/
    http://abc.com/it/
    http://abc.com/ga/
    http://abc.com/ar/

    and I want to know how to exclude all the below URL's and their respective pages from being cached

    http://abc.com/it/
    http://abc.com/ga/
    http://abc.com/ar/

    Though under Page Cache Settings there is an option to exclude pages from being cached but I don't know how to exclude above URL's and their all pages. Please tell me what should I do?

    Regards
    Jimmy

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. jimmygba
    Member
    Posted 4 years ago #

    Frederick, please answer my question!

  3. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    I want to know how to exclude all the below URL's and their respective pages from being cached

    http://abc.com/it/
    http://abc.com/ga/
    http://abc.com/ar/

    Try adding the following to the "Never cache the following pages" field on the page cache settings tab:

    ^/(it|ga|ar)/?

  4. jimmygba
    Member
    Posted 4 years ago #

    Thanks for answering,

    As you replied very late so I fixed the problem by modifing the coding, it took me some time but it was done.

    But I'm really thankful to you for answering, I can understand that may be you've a lot of works to do.

    The answer which you told me

    ^/(it|ga|ar)/?

    I also tried that and it's also working.

    Can you please tell me any tutorial from where I can learn these expression which you used in your answer.

  5. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    You can google search "regular expressions"

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic