filamentphp / demo

Source code for the demo.filamentphp.com website.
https://demo.filamentphp.com
MIT License
865 stars 423 forks source link

Slow Initial Page Load Time Despite Cache Clearing and Setting in Filament Demo #102

Closed DishantPal closed 6 months ago

DishantPal commented 6 months ago

When attempting to clear and set the cache for the Filament demo on GitHub, there persists a significant delay in loading the initial page, taking over 40 seconds. Despite cache clearing and reconfiguration, the issue persists, impacting the user experience.

Steps to Reproduce:

  1. Clone the Filament demo repository: git clone https://github.com/laravel-filament/demo.git filament-demo && cd filament-demo
  2. Install dependencies: composer install --ignore-platform-req=ext-pcntl --ignore-platform-req=ext-posix
  3. Copy the environment file: cp .env.example .env
  4. Generate a Laravel application key: php artisan key:generate
  5. Migrate the database: php artisan migrate
  6. Seed the database: php artisan db:seed
  7. Create a symbolic link to storage: php artisan storage:link
  8. Clear and set the cache:
    php artisan o:c
    php artisan view:cache
    php artisan route:cache
    php artisan icons:cache
    php artisan filament:cache-components
    php artisan event:cache
    php artisan config:cache
    php artisan optimize

Observation: Despite the cache clearing and reconfiguration process, the initial page load time remains slow, taking over 40 seconds. Subsequent page loads show improved performance, indicating a potential caching issue during the initial load.

Video Recording: Link to Video

Seeking insights and suggestions to identify potential reasons for the slow initial page load time despite cache management efforts. Any assistance in troubleshooting and resolving this issue would be greatly appreciated.

danharrin commented 6 months ago

Please don't open duplicate threads, thanks