Caching Filament components

Referring to https://filamentphp.com/docs/3.x/panels/installation#caching-filament-components When I attempt
php artisan filament:cache-components
php artisan filament:cache-components
I get an error:
:~/Projects/Target/labman$ php artisan filament:cache-components

ERROR Command "filament:cache-components" is not defined. Did you mean one of these?

⇂ filament-excel:prune
⇂ filament:assets
⇂ filament:check-translations
⇂ filament:install
⇂ filament:upgrade
:~/Projects/Target/labman$ php artisan filament:cache-components

ERROR Command "filament:cache-components" is not defined. Did you mean one of these?

⇂ filament-excel:prune
⇂ filament:assets
⇂ filament:check-translations
⇂ filament:install
⇂ filament:upgrade
Has component caching been dropped? I am struggling with a bit of a lack of speed issue on a form which has a fair amount of Livewire and lots of components.
Solution:
you probably need to update your filament version.
Jump to solution
8 Replies
Solution
awcodes
awcodes10mo ago
you probably need to update your filament version.
WiseWill
WiseWillOP10mo ago
Thank you, and Happy Birthday! Problem indeed solved, and way faster now.
Moe Tarhini
Moe Tarhini6mo ago
Hello, I upgrade filament version using
composer update
php artisan filament:upgrade
composer update
php artisan filament:upgrade
and still
php artisan filament:cache-components
php artisan filament:cache-components
and
php artisan filament:optimize
php artisan filament:optimize
are not wroking, I'm getting the same error
Dennis Koch
Dennis Koch6mo ago
What does artisan about --only=filament return?
Moe Tarhini
Moe Tarhini6mo ago
php artisan about --only=filament

Filament .........................................................................................................................................
Packages ......................................................................................... filament, forms, notifications, support, tables
Version ................................................................................................................................... v3.2.0
Views .............................................................................................................................. NOT PUBLISHED
php artisan about --only=filament

Filament .........................................................................................................................................
Packages ......................................................................................... filament, forms, notifications, support, tables
Version ................................................................................................................................... v3.2.0
Views .............................................................................................................................. NOT PUBLISHED
krekas
krekas5mo ago
you aren't on the latest filament version
Version ..................................................... v3.2.95
Version ..................................................... v3.2.95
Moe Tarhini
Moe Tarhini5mo ago
That weird, I did run
composer update
php artisan filament:upgrade
composer update
php artisan filament:upgrade
why isn't updated
Dennis Koch
Dennis Koch5mo ago
php artisan filament:upgrade
That command does not upgrade Filament itself. It's a command you should run after upgrading to clear caches etc. Please update Filament via Composer. You probably locked the version to 3.2.0 but it should be ^3.2

Did you find this page helpful?