Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When a file is written to, its file size still report the size before the write. This is the result of keeping the metadata cache entry for the file after it has been overwritten.
Proposed resolution
In AmazonS3StreamWrapper::stream_flush
, delete the cache entry when the object creation request succeed.
Comment | File | Size | Author |
---|---|---|---|
#1 | amazons3-delete_cache_on_write-2329977-1.patch | 849 bytes | pbuyle |
Comments
Comment #1
pbuyle CreditAttribution: pbuyle commentedThe attached patch implement the suggested solution.
Comment #2
justafishCommitted, thanks!