Page 1 of 1

cxs ignore directory (pdir) help

Posted: 23 Oct 2015, 16:09
by sneader
I would like to ignore cache files in WordPress. For example:

'/home/username/public_html/wp-content/cache/wp-cache-46468fced3eda21852947cfe41900145.php'
Regular expression match = [\/proc\/self\/environ]

I have this in the /etc/cxs/cxs.ignore file and have confirmed that I have --ignore /etc/cxs/cxs.ignore enabled on cxscgi.sh, cxsftp.sh and cxswatch.sh

Is this the right way to do it?

pdir:.*/wp-content\/cache\/.*

or should it be:

pdir:^/wp-content\/cache\/.*

Can someone tell me whether I should be using ^ or .* at the beginning here?

Any other tips to properly match?

- Scott

Re: cxs ignore directory (pdir) help

Posted: 13 Sep 2018, 03:50
by sneader
Still would like to know the answer here... any example of the pdir format would be really appreciated.

- Scott

Re: cxs ignore directory (pdir) help

Posted: 12 Jun 2019, 15:50
by sneader
I found the solution:

Code: Select all

pdir:.*\/wp-content\/cache