Allow partial cache updates

Created on 15 November 2021, almost 4 years ago
Updated 1 September 2025, 18 days ago

Problem/Motivation

We have been using a heavily modified version of S3fs for a few years now, and as I am migrating the code to D9 I thought some of them might be useful to the community. This one allows you to do partial cache updates, preserving all the data that is outside of the specified prefix as-is. It is useful to us as we have an area on S3 where one person in the business uploads stuff (via 3rd party application) which Drupal then needs to be made aware of.

This code doesn't cover all scenarios (not tested with Root Folder, or when using S3 for public/private take-over), but works fine for our basic needs on any URI starting with 's3://'.

There is a new text field on the Actions admin page which allows the prefix to be specified, or it can be specified via drush using:
drush s3fs-rc --prefix=SOMETHING

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡«πŸ‡·France paulbeaney

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

    I'm interested feature. I will take a stab at getting this patch to work with the current version.

Production build 0.71.5 2024