tillkruss / Nginx-FastCGI-Cache

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

Cache could not be purged. Filesystem API could not be initialized. #3

Closed tr33m4n closed 8 years ago

tr33m4n commented 8 years ago

Hi there,

I'm getting the following error:

Cache could not be purged. Filesystem API could not be initialized.

Nothing is appearing in the nginx error log. Any idea what's happening/how to debug?

Thanks

tr33m4n commented 8 years ago

Never mind, didn't read the readme closely enough!

inspiredearth commented 6 years ago

I assume what you saw in the readme was this, * The [Filesystem API](http://codex.wordpress.org/Filesystem_API) needs to function without asking for credentials.

How is this actually achieved? At no time does my site ask for file system credentials, and I see no way to tell it not to (even if it was). Please advise.

tillkruss commented 6 years ago

@jonathannz: What's the exact question?

inspiredearth commented 6 years ago

My question is, what exactly must I do to ensure the filesystem API is functioning without asking for credentials?

After reading that codex page, I felt none the wiser.

I am using your excellent plug-in on a site, and sometimes it runs just fine, but other times when I click "Clear cache" it comes back with the error the OP mentions. I am trying to determine why that occurs. If it's something to do with the API asking for credentials, I would be grateful to know how I check this, and also why that might change from occurring, to not occurring (why I can sometimes clear the cache, and other times I can't).

Cheers...

tillkruss commented 6 years ago

That sounds like a filesystem permissions issue.

The plugin works best with direct filesystem setup, but ssh2 and the ftp* modes should work as well, as long as the permissions are granted and it's setup.