It allows me to explicitly purge certain URLs from my Rack::Cache based Radiant::Cache. Please note that this only works if you use the Radiant::Cache standard options. Otherwise you'll have to tweak the metastore that should be used.
Some further reading: http://github.com/svenfuchs/rack-cache-purge.
Comments
Johannes Fahrenkrug said...
Hey Jim,
are you sure about that? I studied the Rack::Cache code today and Sven Fuchs' purge stuff has not been merged yet. I even talked to Ryan Tomayko on Twitter today and he said that he hasn't gotten around to merging that stuff yet.
Also, Sven Fuchs' approach uses the HTTP PURGE verb, so you purge entries by making HTTP requests. I would personally prefer an API I can use programatically.
I will open a ticket, though!
- Johannes
Jim Gay said...
The latest version of rack-cache has this feature built in. Create an issue for this on github and we can get per-key purging built-in
January 12, 2010 03:13 PM
Jim Gay said...
Sorry, you're right. I quickly scanned this thread and thought it was pulled in
January 12, 2010 04:41 PMhttp://groups.google.com/group/rack-cache/browse_thread/thread/14ad1fd0c370b235/6ce1a2eb090f8527?lnk=raot
Thanks for making the issue.