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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Is it allowed to delete the cache folder?

Solved by pamtbaau View solution

Started by Robert Loeffler 4 years ago · 2 replies · 764 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 Jerry Hunt, 4 days ago
2 99 16 hours ago
General · by pamtbaau, 21 hours ago
1 63 21 hours ago
General · by Andy Miller, 1 day ago
0 48 1 day ago
General · by Marcel, 12 months ago
6 357 5 days ago
General · by Duc , 6 days ago
3 45 6 days ago