Not showing newly updated/changed file on Pantheon - Cache issue

Created on 30 January 2023, over 1 year ago
Updated 9 April 2024, 3 months ago

Problem/Motivation

Here's a common request from site editors:

"We uploaded this PDF to Drupal, now we have a new version. The new file needs to have the same URL as the old one so that any direct links to the file show the new version. Oh, and this is a legal document, so we _definitely_ can't have the old version hanging around."

This is incredibly awkward to do with just Drupal Core. So install https://www.drupal.org/project/file_replace β†’ instead.

After replacing the file (either via Drupal Core, File Replace module, or any other technique), the Pantheon CDN will still show the old file.

Proposed resolution

Run pantheon_clear_edge_all() or pantheon_clear_edge_paths() on a file entity when it is updated.

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada JLucySong

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024