diff --git a/clear-cache.sh b/clear-cache.sh new file mode 100644 index 000000000..913284998 --- /dev/null +++ b/clear-cache.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# Clear Laravel/Livewire view cache + +echo "=== Clearing Laravel Caches ===" +cd /var/www/paymenter + +echo "1. Clearing view cache..." +php artisan view:clear + +echo "2. Clearing config cache..." +php artisan config:clear + +echo "3. Clearing route cache..." +php artisan route:clear + +echo "4. Clearing application cache..." +php artisan cache:clear + +echo "5. Clearing compiled classes..." +php artisan clear-compiled + +echo "6. Deleting specific compiled view..." +rm -f storage/framework/views/1075fa95e101ea7c85d0b4ca9e4480b3.php + +echo "7. Listing remaining compiled views..." +ls -lh storage/framework/views/ | head -20 + +echo "" +echo "=== Cache Cleared Successfully ===" +echo "Try reloading the homepage now!" +