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

Images deleted after Clear Cache

Started by Patrick Hoehn 9 years ago · 5 replies · 1011 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 jean-louis67, 3 days ago
2 84 2 days ago
General · by Andy Miller, 7 days ago
0 147 7 days ago
General · by Veehem, 1 week ago
0 146 1 week ago
General · by milkboy, 1 week ago
0 142 1 week ago
General · by ian russell, 2 weeks ago
2 226 2 weeks ago