Storage::url() in Digital Ocean spaces too slow #47815
Unanswered
lucianobosco
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For Laravel 9, I'm using Digital Ocean spaces and
Storage::url()
to return the full bucket endpoint for files.I've been facing latency issues and I realized that problem was related to ApiResource returning this:
As soon I remove
Storage::url()
latency is decreased about 400ms in my endpoint.I'm wondering if there is a way to improve this. I want to avoid writing the URL manually but the time is not acceptable at all.
As I understand, this method hits the storage to get the domain.
Any advice will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions