Skip to content

Instantly share code, notes, and snippets.

@wesort
Created September 20, 2022 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesort/e69ec1518f0f13a4eff0b031e7d80122 to your computer and use it in GitHub Desktop.
Save wesort/e69ec1518f0f13a4eff0b031e7d80122 to your computer and use it in GitHub Desktop.
Refresh utility for Statamic v3
php artisan cache:clear # Clear the Laravel application cache.
php artisan config:cache # Clear and refresh the Laravel config cache.
php artisan route:cache # Clear and refresh the Laravel route cache.
php artisan statamic:stache:warm # Warm the Statamic stache.
php artisan statamic:search:update --all # Update the search index.
php artisan statamic:static:clear # Clear the Statamic static cache (if you use this).
#php artisan statamic:static:warm --queue # Warm the Statamic static cache (if you use this).
echo 'warming /work ...'
curl -# https://example.com/large-page > /dev/null
echo '/work is warmed.'
php artisan statamic:assets:generate-presets # Generate all asset presets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment