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?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Solved by pamtbaau View solution
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?
@Henning007, A few alternative strategies:
$ 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.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.Hello pamptbaau,
Thanks for the info, that's good. I always download the whole domain to be sure.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 85 | 13 hours ago | ||
| 1 | 60 | 18 hours ago | ||
| 0 | 47 | 1 day ago | ||
| 6 | 350 | 5 days ago | ||
| 3 | 44 | 5 days ago |