WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pjv
    Member
    Plugin Contributor

    Posted 1 year 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.

    thanks.

    http://wordpress.org/extend/plugins/nginx-helper/

  2. pjv
    Member
    Plugin Contributor

    Posted 1 year 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
    Member
    Plugin Contributor

    Posted 1 year ago #

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

  4. rahul286
    Member
    Plugin Author

    Posted 1 year ago #

    @pjv

    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

About this Topic

Tags

No tags yet.