Add getFilesystem method to CacheStorage - #79
Conversation
Just like the OriginalStorage exposes storage. Without this change it does not seem possible to generate temporaryUrls for S3 buckets.
|
Hi @rvanlaak Thanks for the patch! You're right that the asymmetry between Just be aware that cache entries are generated lazily: calling Also, note that I would rather like #75 to land a proper |
|
Pinned down a performance issue last week on resolving the S3's temporary urls for the variations, so the way how temporary URLs for both the original and cache storage are accessible could use some enhancement. What happened was that a 'manager' class was resolving the S3 URLs - involving checking whether the file exists on the bucket. This should not have happened on GET endpoints. For variations it should be simpler to rely on their existence (or have a hook to dispatch a bg job to check and create them?). |
Just like the OriginalStorage exposes storage. Without this change it does not seem possible to generate temporaryUrls for S3 buckets.
Relates to #75 , so adding temporary url generation and not exposing filesystem is fine by me as well.
Workaround for now; wire the same Flysystem filesystem to my own action until this PR becomes available or temporary url generation is integrated.