<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Warm_up_Varnish_Script_using_Sitemap.xml</id>
		<title>Warm up Varnish Script using Sitemap.xml - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Warm_up_Varnish_Script_using_Sitemap.xml"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Warm_up_Varnish_Script_using_Sitemap.xml&amp;action=history"/>
		<updated>2026-06-04T11:35:04Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Warm_up_Varnish_Script_using_Sitemap.xml&amp;diff=595&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Warm up Varnish Script using Sitemap.xml==  I noticed after doing some random testing on my site that if I do a nightly warming of varnish, my site loads fast with varnish. ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Warm_up_Varnish_Script_using_Sitemap.xml&amp;diff=595&amp;oldid=prev"/>
				<updated>2014-03-20T13:05:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Warm up Varnish Script using Sitemap.xml==  I noticed after doing some random testing on my site that if I do a nightly warming of varnish, my site loads fast with varnish. ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Warm up Varnish Script using Sitemap.xml==&lt;br /&gt;
&lt;br /&gt;
I noticed after doing some random testing on my site that if I do a nightly warming of varnish, my site loads fast with varnish.  &lt;br /&gt;
&lt;br /&gt;
I have cache set for about one day, so nightly varnish warming has helped with site speeds.&lt;br /&gt;
&lt;br /&gt;
Here is what I am currently doing:&lt;br /&gt;
&lt;br /&gt;
===Create a URL list file===&lt;br /&gt;
&lt;br /&gt;
1) Create a list of all urls on the site via the sitemap.xml file&lt;br /&gt;
&lt;br /&gt;
 curl --silent http://briansnelson.com/sitemap/sitemap-briansnelsoncom-wiki_-NS_0-0.xml | grep \&amp;lt;loc\&amp;gt; | sed 's/.*&amp;lt;loc&amp;gt;//' | sed 's|&amp;lt;/loc&amp;gt;||' &amp;gt; ~/sitemaps/urllist-briansnelson.txt&lt;br /&gt;
&lt;br /&gt;
Now that you have the list of urls on yoru site via the sitemap&lt;br /&gt;
&lt;br /&gt;
===Seige your site using the list of urls===&lt;br /&gt;
&lt;br /&gt;
Now this kills two objects with one stone&lt;br /&gt;
&lt;br /&gt;
1) It gives a daily report of site performance ...yaaa&lt;br /&gt;
2) Warms the varnish cache&lt;br /&gt;
&lt;br /&gt;
You can manually run siege to visually see the results&lt;br /&gt;
&lt;br /&gt;
 sudo siege -c100 -d5 -r1 -v -i -f ~/sitemaps/urllist-briansnelson.txt&lt;br /&gt;
&lt;br /&gt;
===Setting up Siege to run Via a nightly cron===&lt;br /&gt;
&lt;br /&gt;
Now lets set it up as a nightly cron&lt;br /&gt;
&lt;br /&gt;
 0 0 * * * /usr/bin/siege -c100 -d5 -r1 -v -i -f ~/sitemaps/urllist-briansnelson.txt&lt;br /&gt;
&lt;br /&gt;
You can run this script as often as you like to keep your varnish cache warmed up, I run my nightly as I do not refreash my cache that often.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>