6

Is it possible to force Heroku to clear out the Varnish cache from within an application (i.e. without pushing a new repository)?

1 Answer 1

4

Though this Heroku mailing list message is a year old, I haven't found anything to contradict it.

No, there's no official way to manually expire your cache on Varnish. If you need more control over your cache (ie setting when it expires is not enough) I'd recommend using Memcache instead.

I doubt this has changed. Since Varnish is run outside the context of the Rails app, there probably isn't a Varnish class or anything like that, so no method that would purge the cache. Looks like you're on your own.

1
  • Thanks. Looks like I'll need some sort of combination of Memcache and Varnish. Jun 2, 2011 at 23:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.