Learning

Clearing the Server Cache on Pantheon

All of the websites we host on Pantheon come with built-in server cache. This may cause content changes to not immediately appear to your website’s visitors, especially if the change occurs on a page other than the one being updated. For example, a page listing recent blog posts may not immediately update the list of posts when a new blog post has been published.

To fix this, we can clear the server cache immediately in a few different ways. Please note, however, that this only affects server cache. Any cache stored on the visitor’s browser will not be affected, but whole pages are not something that is usually stored by browser cache (although situations may vary).

Method 1: Clear an Individual Page’s Server Cache

  1. Log into your website’s admin dashboard.
  2. Navigate to the page whose cache you want to clear.
  3. View the “front end” of the page by clicking on the “View Page” link in the admin bar at the top.
  4. Click on the “Clear URL Button” in the admin bar at the top.

This will clear the cache for that page only.

Method 2: Clear the Entire Site Server Cache

  1. Log into your website’s admin dashboard.
  2. Under “Settings” in the left sidebar admin menu, click on “Pantheon Page Cache”.
  3. Click on the “Clear Cache” button near the top of the page.

This will clear the server cache for the entire website, and may affect website performance briefly while the cache is being repopulated.

A Note on Time-To-Live

How long a page is cached before a “fresh” version is retrieved from the server again is called the Time-To-Live, or TTL for short. Pantheon recommends a TTL of 1 week, and that is its default setting. However, if you need your content to be more responsive to changes, we can change the TTL, but this must be done through code. Please contact us by using the Support Form link in your WordPress admin dashboard and we will be happy to set the TTL for whatever amount of time works best for your needs.