Grav includes built-in caching configured in the user/config/system.yaml file and stored in /cache folder. Below we cover how to clear the Grav site cache using the Admin plugin and SSH.
- Log into Grav.
- Select Clear Cache in the upper-right.
Select the arrow to only clear Assets, Images, Cache, or Tmp cache.
- Login SSH.
- Type cd [path-to-grav-folder] to navigate to your Grav directory.
- Type bin/grav clear-cache to clear the cache.
Cleared: /home/[path-to-grav]/cache/twig/* Cleared: /home/[path-to-grav]/cache/doctrine/* Cleared: /home/[path-to-grav]/cache/compiled/* Cleared: /home/[path-to-grav]/images/*
Other options to add after the command include:
–assets-only for CSS and Jquery
–cache-only for core changes
- Check your website in a web browser. You may stiil need to clear your browser cache.
Learn more about Grav in our Support Center.