Add integration with Purge module to purge cache of file path after replacement

Created on 24 February 2020, over 4 years ago
Updated 15 August 2023, 11 months ago

We should be able integrate with the Purge β†’ module to automatically invalidate external cache entries for the replaced file after it has been replaced. While the cache tag for the file entity will already be invalidated by the purge module, it won't do anything, because external caches do not have the cache tags associated with static assets. This is because Drupal, the backend that would add the cache tags to the response, does not serve the static assets. The web server (Apache/Nginx) does.

So, we should be able to purge based on URL instead of cache tag.

This won't purge file assets stored in the browser. We cannot do anything about that, but instruct site owners to lower the cache lifetime.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024