jimmygba
Member
Posted 2 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/
jimmygba
Member
Posted 2 years ago #
Frederick, please answer my question!
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)/?
jimmygba
Member
Posted 2 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.
You can google search "regular expressions"