Nginx Helper
[resolved] Not purging home page (4 posts)

  1. pjv
    Plugin Contributor

    Posted 2 years ago #

    Hi, I'm recently seeing an issue where the plugin is failing to purge the home page for a wordpress blog when a new post is published.

    I can manually purge it by doing http://homepage/purge/ so i think that means that my nginx config is right. I looked quickly inside the purger.php file in the plugin and it says it should be trying to purge siteurl, which is correctly configured for the same URL that i used in the successful manual purge.

    I turned on the logging function to see if i could find anything out, but I don't know where the plugin puts its log. can you tell me that?

    can you think of anything that might be interfering with home-page purging?

    my setup is the result of having followed your tutorials for WP single site with nginx fast_cache, php-apc, and W3TC.



  2. pjv
    Plugin Contributor

    Posted 2 years ago #

    ok, i found the log and i see what the problem is. i was wrong about siteurl being correctly configured.

    i was also too brief when i said that the setup was the same as in your tutorials as there is one more significant piece that i left out. i am using git to manage my wordpress install, following this guide, and that results in my siteurl needing to have /wordpress appended to it.

    i can fix this issue for myself in this case by using WP_HOME instead of WP_SITEURL as the url for the homepage purge. but i am wondering if that might be the better URL to use for everyone. if so, i am happy to make the change and send you a pull request through github. otherwise i will do it for myself only and manage future updates to the plugin manually.

    thanks again.

  3. pjv
    Plugin Contributor

    Posted 2 years ago #

    went ahead and sent the pull request so you can decide whether you want to incorporate the change or not.

  4. rahul286
    Plugin Author

    Posted 2 years ago #


    Thanks for another pull request. :-)

    We have merged it into master and will release it soon.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic


No tags yet.