简体   繁体   中英

Heroku Force Clear Varnish Cache

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM