---
title: "Swimburger - Blog - Automation"
description: "Swimburger.net is a blog about .NET, cloud, web development, and whatever comes across Swimburger's plate. Swimburger.net is run by Niels Swimberghe."
canonical: "https://swimburger.net/blog/automation"
---

[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/1116/thumbnail-optimized.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/1116/thumbnail-optimized.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/1116/thumbnail-optimized.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/1116/thumbnail-optimized.png 500w" sizes="250px" width="250" height="250" alt="PowerShell Logo" decoding="async" loading="lazy" style="background-color:#2D2D2D"></picture>

## PowerShell Snippet: Clearing Cloudflare Cache with Cloudflare's API

2/20/2019 - PowerShell

Cloudflare provides a GUI to purge cache, but every action you can perform using the GUI, you can also do with Cloudflare's API. You could use the API to auto purge the cache whenever you update content in your CMS of choice, or purge the cache as part of your Continuous Delivery pipeline. Using PowerShell we'll interact with Cloudflare's API and purge their cache.



](/blog/powershell/powershell-snippet-clearing-cloudflare-cache-with-cloudflares-api)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/1103/thumbnail-optimized.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/1103/thumbnail-optimized.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/1103/thumbnail-optimized.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/1103/thumbnail-optimized.png 500w" sizes="250px" width="250" height="250" alt="PowerShell logo" decoding="async" loading="lazy" style="background-color:#2D2D2D"></picture>

## PowerShell Snippet: Crawling a sitemap

1/19/2019 - PowerShell

Here's a PowerShell function that you can use to validate that all pages in your sitemap return a HTTP Status code 200. You can also use it to warm up your website, or ensure your website caching is warm after a cold boot. I personally use it as part of my Continuous Delivery pipeline to warm up my site and Cloudflare's cache.



](/blog/powershell/powershell-snippet-crawling-a-sitemap)
