Basset slow on first site load #1337
Replies: 4 comments 1 reply
-
Based on the information provided, it seems you're experiencing slow first page loads despite running the appropriate Basset commands in your deployment script. This is a known behavior with Basset in Backpack 6.x. According to the documentation, when you deploy to production, Basset caches assets as pages are loaded for the first time, which can make initial page loads quite slow. This is mentioned in the upgrade guide:
You're already running the recommended commands in your deployment script:
The
If these suggestions don't help, you could temporarily set ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Upgrade Guide|Cache |
Beta Was this translation helpful? Give feedback.
-
Hello @sammyblackbaron As our bot say, make sure you have the right permissions for cache. Try with this command to check if there is an error in your server config
And please let us know about the versions you are running
Cheers. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @sammyblackbaron, for sharing this information, I don't see a problem in check and versions, how did you know this is a basset problem and not a SQL loading time? Did you have some log or network information to check where could be the slow loading? This happens just with the first page or any route? Cheers. |
Beta Was this translation helpful? Give feedback.
-
Due to not activity, I will close the issue, but please feel free to re-open or create a new one. Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my deploy script I have these lines:
php artisan storage:link
php artisan basset:clear
php artisan basset:cache
My .env is set to:
APP_ENV=production
And I don't have any
BASSET
lines in my .env.Yet when I deploy and visit my site, the first page load takes 30+ seconds as if it's having to cache again. Have I missed a setting or command?
Beta Was this translation helpful? Give feedback.
All reactions