What would be your recommendations about warming a varnish cache? The particular case is a site that has not too many visits, but from time to time we need to flush the cache (the reasons for this would be a whole different matter).
So, the particular request is: "we want to warm the cache as soon as a flush is done". We are just looking for information and found the standard method of using crawlers and/or sitemaps-based scripts, however, we don't want to be too aggressive and harm the server in the process.
Any advice, experience, opinion, etc. that you share would be very appreciated.
Thank you!
Best Answer
I came across this recently and thought it would be helpful to you.
A crawler is really the only way to go about it as I mentioned in my comment to your question, here's a pre-baked one from the Magento Turpentine plugin group.
https://github.com/nexcess/magento-turpentine/blob/master/util/warm-cache.sh
It gets the URLs from the sitemap and crawls them.
And, in case the Github page ever goes AWOL.