Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon What steps should I follow to clear the cache in MoonShine


What steps should I follow to clear the cache in MoonShine


To clear the cache in MoonShine, follow these steps:

1. Clear Laravel Cache:
- Open your terminal and navigate to your Laravel project directory.
- Run the following commands to clear different types of caches:

bash
     php artisan cache:clear
     php artisan config:clear
     php artisan route:clear
     php artisan view:clear
     

2. Clear Browser Cache:
- Clear your web browser's cache to ensure you're seeing the latest changes. This can typically be done by going to your browser settings and finding the option to clear browsing data. Make sure to select cached images and files.

3. Restart the Server:
- After clearing the cache, restart your web server (e.g., Apache or Nginx) to apply changes.

4. Check for Additional Cache:
- If you are using any caching mechanisms like Redis or Memcached, make sure to clear their caches as well.

By following these steps, you should be able to effectively clear the cache in your MoonShine application and resolve any related issues.

Citations:
[1] https://github.com/Moonshine-IDE/Moonshine-IDE/issues/49
[2] https://moonshine-laravel.com/docs/resource/getting-started/troubleshooting
[3] https://its.uiowa.edu/support/article/719
[4] https://kb.iu.edu/d/ahic
[5] https://www.reddit.com/r/RedDeadOnline/comments/eaye8d/moonshiner_bug_report_possible_solutions_thread/
[6] https://moonshine.cutcode.dev/section/contribution
[7] https://uaptc.edu/clear-cache
[8] https://www.youtube.com/watch?v=fCGEd87ieEQ