Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Is it allowed to delete the cache folder?

Solved by pamtbaau View solution

Started by Robert Loeffler 4 years ago · 2 replies · 971 views
4 years ago

clear cache?

When I download my GRAV installation via FTP, it takes a very long time. The reason is the "cache" folder. This quickly inflates to over 100,000 files.
Why is this, and can I safely delete it from time to time?

4 years ago Solution

@Henning007, A few alternative strategies:

  • You can safely run $ bin/grav cache on your remote site before downloading it. However... the first visitor hitting the site will get a performance penalty because the cache will be rebuild first.
  • Another option is to only download the /user folder because this folder contains all your site specific data, like pages, themes, plugins, configs, etc. All other folders are Grav itself and can be downloaded separately from https://getgrav.org ( ~18Mb)
  • And yet another option is to run zip -r <name.zip> . -x "cache/[^.]*" which will exclude the contents of the /cache folder. Since most of Grav is just code, the size of the zip will be approx 20% of the installed site.
4 years ago

Hello pamptbaau,
Thanks for the info, that's good. I always download the whole domain to be sure.

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago