FRiCKLE / ngx_cache_purge

nginx module which adds ability to purge content from FastCGI, proxy, SCGI and uWSGI caches.
http://labs.frickle.com/nginx_ngx_cache_purge/
Other
1.06k stars 311 forks source link

multiple cache clears #4

Open attiks opened 13 years ago

attiks commented 13 years ago

Is it possible to add support for multiple fastcgi_cache_purge inside one location, barracuda (http:/drupal.org/project/barracuda) uses multiple caches depending on the device, you can find more information at http://drupal.org/node/1329770, but in short we want to be able to do something like this

location ~ /purge(/.*) {
     fastcgi_cache_purge speed normal$host$1$is_args$args;
    fastcgi_cache_purge speed mobile-other$host$1$is_args$args;
      ...
  }
PiotrSikora commented 12 years ago

This would be possible, but it would only work with the current syntax and not with the to-be-added alternative in-location syntax. I'll think about it.

pyh commented 12 years ago

@PiotrSikora have you had enough time to think about it? :) Or does this end up as "patches welcome", which I sadly can't provide.

PiotrSikora commented 12 years ago

I did and I will add this, but I have no ETA at this time.

nikolay commented 11 years ago

+1

keichan34 commented 11 years ago

I'm trying to do the same thing, and since this ticket has been open for 2 years now, I'm just wondering what the status is?

nikolay commented 11 years ago

@keichan34 The last commit was 6 months ago. I guess this project development is stale and only critical bugs from the project sponsor are getting addressed.

rahul286 commented 11 years ago

+1 we needed something like this also.

We are storing 7-versions of every URL in cache. Each URL has specific data. Once a page need to be removed from cache, we need to remove 7-version of same page.

As of now we are doing this in PHP in for-loop. We are changing value of variable in loop and hitting /purge/.

amq commented 9 years ago

+1

franklinwise commented 9 years ago

+1 What's the other option to clearing multiple versions of the same page?