WordPress.org

Ready to get started?Download WordPress

Forums

NGINX Manager
Preheat new post cache before purging homepage? (6 posts)

  1. coldcache
    Member
    Posted 1 year ago #

    Would it be possible to do a remote GET on a new post before purging the main page cache? This would avoid a cache miss storm when populating the cache for a new post.

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

  2. rahul286
    Member
    Posted 1 year ago #

    You can use fastcgi_cache_use_stale directive in nginx config. I think that should take care of cache miss storm

    If you think something should be done on plugin side, please provide more details. I may add it in our http://wordpress.org/extend/plugins/nginx-helper/ plugin.

  3. coldcache
    Member
    Posted 1 year ago #

    Assume that we are currently typing up a post titled "New post" which will be available at the direct link http://domain.com/new-post. When the post is submitted, the plugin could take the following steps:

    1- Issue a GET request for http://domain.com/new-post
    2- Purge the cache for http://domain.com/
    3- Issue a GET request for http://domain.com/

    That way, by the time users see the new post and click on it, the cache will be populated.

  4. rahul286
    Member
    Posted 1 year ago #

    Got it. You are asking for a new feature where plugin will send a GET request so the first visitor to new post will get a cached copy. Right?

  5. coldcache
    Member
    Posted 1 year ago #

    Exactly.

  6. rahul286
    Member
    Posted 1 year ago #

    Already added it to our todo list: https://github.com/rtCamp/nginx-helper/issues/21

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic