schoefmann / klarlack

klarlack is a ruby client library for the varnish administration interface. It allows, among other things, purging of cached objects from ruby code.
http://github.com/schoefmax/klarlack
MIT License
73 stars 9 forks source link

new functions for purging content #5

Closed runa closed 14 years ago

runa commented 14 years ago

Heyas :)

Have you checked the latest interface for purging documents from varnish cache? http://varnish-cache.org/wiki/Purging

I will need to use this new features, if you don't have time to implement those, just say so and I'll fork the project, implement those myself :)

schoefmann commented 14 years ago

I've changed the purge-method in HEAD to allow a single argument (your custom purging conditions). Does that solve your problem?

runa commented 14 years ago

well, I think it solves my problem but I don't think it's the correct fix since AFAIK the old functions are deprecated and shouldn't be used. Instead, the old (:url) params should be mapped to parameters to the new 'purge' method

schoefmann commented 14 years ago

Correct me if I'm wrong, but I think just "url.purge" was deprecated a while ago in favor for "purge.url".

runa commented 14 years ago

sorry, you're right. purge.url is the way to go. Tnx!