1

I have URI A that retrieves a list from a server, it's a long process that I would like to cache.

I have another URI B, which updates the collection retrieved by URI A, and so the cache is invalid.

Is there anyway, to invalidate Niginx cache for A when a request is made for B.

I can't set a time limit, the frequency of updates (request B) can range from few seconds to few days

Thank you

2
  • You would probably need to provide examples of what the URL's contain such as content type, what cache control headers you or the app are setting, if the demarcation is a query string and relevant snippets of your nginx configuration.
    – Aaron
    Mar 26, 2018 at 16:34
  • Nginx Plus has better cache invalidation support than open source Nginx. I couldn't get Nginx Cache Purge to work with Wordpress, but it's worth looking at.
    – Tim
    Mar 26, 2018 at 18:25

0

You must log in to answer this question.

Browse other questions tagged .