View Code? Open in Web Editor
NEW
klarlack is a ruby client library for the varnish administration interface. It allows, among other things, purging of cached objects from ruby code.
Home Page: http://github.com/schoefmax/klarlack
License: MIT License
klarlack's People
Contributors
Watchers
klarlack's Issues
purge :hash, '/home?x=1' <-> invalid regex syntax, maybe the ? is escaped twice to ? or something like that...
e.g. purge wit a invalid regex and this error appears
10000.times{ EsiHelper.purge_url '^xxxx$' }
sudo /etc/i/varnish restart
-> Rails instance freezes in 1/3 cases (normal error in 2/3 cases)
i already tried removing the mutex + @conn.read + @conn.gets from cmd, but did not help so far
could you write a spec that tests this scenario or just try it out <-> maybe something wrong with our setup...
atm we are testing some issues with freezing rails instances when i notices this not-so-nice error:
10000.times{ EsiHelper.purge_url '^xxxx$' } + sudo /etc/i/varnish restart
nil.split <->
pre>/apps/dawanda/vendor/plugins/klarlack/lib/varnish/client.rb:224:in cmd' /apps/dawanda/vendor/plugins/klarlack/lib/varnish/client.rb:221:in
synchronize'
/apps/dawanda/vendor/plugins/klarlack/lib/varnish/client.rb:221:in cmd' /apps/dawanda/vendor/plugins/klarlack/lib/varnish/client.rb:138:in
purge'
its no real problem, but it could be a normal Varnish::Error
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 :)