WordPress.org

Ready to get started?Download WordPress

Forums

Nginx
mostly works (2 posts)

4 stars
  1. Yui
    Member
    Posted 11 months ago #

    thanks for a nice helper for clearing fcgi cache,
    even if clearing the cache completely doesnt work in all environments,
    doing it require php to be ran user same uid as nginx and not chrooted.

    In chrooted and uid-separated environment its not possible to flush the cache

  2. rahul286
    Member
    Plugin Author

    Posted 10 months ago #

    Thanks for your feedback Yui.

    Cache clearing issues are side-effect of linux security.

    When nginx and php user are different AND php user are not part added to nginx group, you may notice this issue.

    Reason - cached pages are created by Nginx so they are owned by nginx-user.
    If php user is different, it relies on group or other users write permission for cached content.

    Ideal workaround would be from Nginx module. The nginx module which creates cache should also provide an API/function call to purge entire cache.

    Till then, on some systems, some kind of user/group permission fixing (one-time) need to be done.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.