Clear content-cache for a site

What is content-cache?

This service was developed to provide front-end caching for web sites run by Canonical’s IS team, and to reduce the need for third-party CDNs by providing high-bandwidth access to web sites via this caching front-end. Currently used for a number of services including the Snap Store, the majority of Canonical’s web properties including ubuntu.com and canonical.com, and Ubuntu Extended Security Maintenance.

Wipe our content-cache

If you need to wipe out the cache for one of our services:

  1. Connect to the Canonical VPN
  2. SSH to wendigo:
    ssh <your_username>@wendigo.canonical.com
    If you don’t have access or you never did it, it’s possible that IS has to create an account for you.
  3. Once you are logged run:
    sudo -i -u stg-comms-ubuntu-com
  4. Wipe the website cache with:
    site=ubuntu.com; for i in $(dig a +short $site); do ssh -i ~/.ssh/content-cache-purge content-cache-purge@$i $site; done

* We are working with IS on a better way of cleaning the cache by running a Jenkins’ job.

2 Likes

This post was flagged by the community and is temporarily hidden.