My app Very slow !Why?
In the local not slow but in the server verey slow,Why
20 Replies
If your widget get slow so use this code
protected static ?string $pollingInterval = '10s';
protected static bool $isLazy = true;
all pages not this page just?
did you use icon other than heroicons?
if you use a lot of icon . just run php artisan icon:cache in your terminal
yes
ok ,I'll try it anshalah
good ,How i can solve it?
Have u run the command i given in your terminal ?
yes,How much can I run this commend?
Just 1 time
How your app ? Smooth?
Yes, it is on doker and i have deployment with all merge
Use telecope and inspect the request to see what's happeneing.
Probably you can add that command to run in your command file 1 a day .
I used laravel debugbar
If you are using this, make sure to disable view collection as that massively slows everything down.
you mean create cron job for run this command ?
Yes
Mine also sometimes slow bcs of icon cache
If I delete all Icons ,IS it work? no any por ?
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
sometimes I need to custom icon for my app ,bec I do not found declare heroicons
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
The problem is that it will become with the customers. The solution is to execute the order periodically