WordPress.org

Ready to get started?Download WordPress

Forums

Network Nginx Proxy Cache Purge
[resolved] Single Site Purging (3 posts)

  1. alexphelps3
    Member
    Posted 10 months ago #

    Hi Ron,

    Does this plugin work to purge the cache of just 1 site at a time as well?

    I'm looking for how to have these 2 options:
    1. Purge Single Site Cache
    2. Purge Entire Network Cache

    Thanks in advance.

    Alex

    http://wordpress.org/plugins/network-nginx-proxy-cache-purge/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 10 months ago #

    To purge the entire network you can restart/reload nginx.

    There isn't anything for purging all of a single site due to the number of URLs that need to be purged in a typical site. The proxy cache key is a MD5 of the URL so there is no direct connection between cached content and a particular site in the network.

    Having said that, you could write something to go through all of the posts and build an array of URLs to be purged if the site did not have a lot of content. The readme has some documentation on the functions you could use to retrieve the URLs per post, page, etc.

  3. alexphelps3
    Member
    Posted 9 months ago #

    Thanks for the deeper explanation on this.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.