Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Images deleted after Clear Cache

Started by Patrick Hoehn 9 years ago · 5 replies · 1219 views
9 years ago

Like the title says, after Clear Cache my uploaded images (/mytheme/assets) get deleted. The path to the file is still there, but the file itself is deleted from the server.

9 years ago

I did that for a full day until I figured out the bigger picture 😭

9 years ago

There is a setting in system.yaml:

YAML
cache:
...
  clear_images_by_default: true  # By default grav will include processed images in cache clear, this can be disabled

Set this to false, and your images won't be deleted with regular cache clears.

Suggested topics

Topic Participants Replies Views Activity
General · by Karmalakas, 16 hours ago
2 48 2 hours ago
General · by Hanns Mattes, 2 weeks ago
0 156 2 weeks ago
General · by Dima, 3 weeks ago
1 160 3 weeks ago
General · by pamtbaau, 3 weeks ago
0 261 3 weeks ago
General · by lynbor, 2 months ago
5 749 1 month ago