My app Very slow !Why?

In the local not slow but in the server verey slow,Why
No description
20 Replies
mr_vjchauhan
mr_vjchauhan7mo ago
If your widget get slow so use this code protected static ?string $pollingInterval = '10s'; protected static bool $isLazy = true;
Alnuaimi
AlnuaimiOP7mo ago
all pages not this page just?
smwgn1331
smwgn13317mo ago
did you use icon other than heroicons?
Expecto Patronum
if you use a lot of icon . just run php artisan icon:cache in your terminal
Alnuaimi
AlnuaimiOP7mo ago
yes ok ,I'll try it anshalah good ,How i can solve it?
Expecto Patronum
Have u run the command i given in your terminal ?
Alnuaimi
AlnuaimiOP7mo ago
yes,How much can I run this commend?
Expecto Patronum
Just 1 time How your app ? Smooth?
Alnuaimi
AlnuaimiOP7mo ago
Yes, it is on doker and i have deployment with all merge
toeknee
toeknee7mo ago
Use telecope and inspect the request to see what's happeneing.
Expecto Patronum
Probably you can add that command to run in your command file 1 a day .
Alnuaimi
AlnuaimiOP7mo ago
I used laravel debugbar
toeknee
toeknee7mo ago
If you are using this, make sure to disable view collection as that massively slows everything down.
Alnuaimi
AlnuaimiOP7mo ago
you mean create cron job for run this command ?
Expecto Patronum
Yes Mine also sometimes slow bcs of icon cache
Alnuaimi
AlnuaimiOP7mo ago
If I delete all Icons ,IS it work? no any por ?
Expecto Patronum
I run that command in my cron job Yes I tried before I inspect . If i use less icon Its help . But when lot of icon being using It will make it app become slow So need to run that command
Alnuaimi
AlnuaimiOP7mo ago
sometimes I need to custom icon for my app ,bec I do not found declare heroicons
Expecto Patronum
Yeah Mine as well So the solution i found is use to run that command Not everytime But when my app getting slow . Just run that So i let cron job to do it
Alnuaimi
AlnuaimiOP7mo ago
The problem is that it will become with the customers. The solution is to execute the order periodically
Want results from more Discord servers?
Add your server