MaxServ / t3ext-fal_s3

S3 driver for FAL
GNU General Public License v2.0
13 stars 10 forks source link

[BUGFIX] Optimize memory folder- and fileExistsCaches #79

Closed djcprinse closed 1 year ago

djcprinse commented 1 year ago

This fix has been implemented in v2 during the upgrade and resolves issues with processing folder creation on and empty bucket. Without this fix, when uploading a file in the backend or processing files in the frontend, you will get errors that the parent folder does not exist.

The ResourceStorage::getNestedProcessingFolder throws an error when recursively creating folders because, after creating the first folder (e.g. /_processed_/c) the driver still has the memory cache that contains /_processed_/c as non existing.

By clearing the memory cache on every file or folder action, as we already do with remote caches, TYPO3 will now correctly create multiple processing folders at a time.