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.
For every image load in the frontend of the site, amazons3_file_stream_wrapper_uri_normalize_alter hook is getting called and trying to validate if the bucket exists thus causing tons of load on web servers with php requests and external calls.
Has anyone faced this issue before with s3 implementation?
Comments
Comment #2
subson CreditAttribution: subson commentedComment #3
szantog CreditAttribution: szantog as a volunteer commentedI can confirm the issue is valid. We just ran into at the last week.
Currently I'm trying to set up more sophisticated cache around rendered images using built-in cache of panels/views as a tmp solution.
I'm not sure, we should probably store the result of
S3Client::validateBucketExists($url->getBucket(), $s3, new \Drupal\amazons3\Cache());
in cache?Comment #4
szantog CreditAttribution: szantog as a volunteer commentedWhat about this?
I'm not sure i understand the big picture of this validateBucketExists(). Any disadvantages?
Comment #5
Kristen PolClosing since it's been 3 years. Please reopen if it's still an issue and add steps to reproduce.