tillkruss / Nginx-FastCGI-Cache

A WordPress plugin that purges Nginx cache zones.
48 stars 25 forks source link

Use the cache path when testing credentials #1

Closed CJNE closed 8 years ago

CJNE commented 8 years ago

I had made sure that the php user had access to delete files in cache path but the credential test did not pass due to php user didn't have access to wp-content (or perhaps the plugin dir?). This change will test for access to cache path instead.

tillkruss commented 8 years ago

I've merged your PR and improved the request_filesystem_credentials() call a little bit in 6232cc9e57846347c0ea8e661dd781514fcf9fd2. Could you see if it still works on your system after my change?

CJNE commented 8 years ago

Hello,

Yes it still works in my setup, thank you for merging :)

/Johan

2016-02-02 23:35 GMT+01:00 Till Krüss notifications@github.com:

I've merged your PR and improved the request_filesystem_credentials() call a little bit in 6232cc9 https://github.com/tillkruss/Nginx-FastCGI-Cache/commit/6232cc9e57846347c0ea8e661dd781514fcf9fd2. Could you see if it still works on your system after my change?

— Reply to this email directly or view it on GitHub https://github.com/tillkruss/Nginx-FastCGI-Cache/pull/1#issuecomment-178867427 .