Closed tabacitu closed 1 year ago
Me and @tabacitu had debugged this a little bit further.
We suspect the issue may be that the artisan calls (in basset:fresh command) are made asynchronously, so the second one does not wait for the first to finish.
Instead of directly calling artisan we may need to use Symfony Process
class, that we can wait until we get a "all good" output from the first command.
@promatik
Fix provided by https://github.com/Laravel-Backpack/basset/pull/73 👌
I've noticed this in our online demo. But the issue happens on my local too. After I've already run
php artisan basset:fresh
... subsequent calls DO NOT seem to actually do a fresh. They are just too fast.php artisan basset:fresh
call - 4s to internalize everythingphp artisan basset:fresh
call - 0.08s 👀 fishyphp artisan basset:fresh
call - 0.04s 👀 fishy againphp artisan basset:clear && php artisan basset:internalize
(which should be the same thing asphp artisan basset:fresh
- 4-8s (normal)Soo... what's happening here? 👀 Any idea @promatik ?