WordPress.org

Forums

Nginx Helper
mostly works (2 posts)

  1. Yui ゆい
    Member
    Posted 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Nginx Helper
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.