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 · 974 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

@chris_jung, :see_no_evil: I thought this just applies to the root's assets folder... Thank you for the hint!

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.

9 years ago

My fault I misread that /mytheme/ - Thing.

Suggested topics

Topic Participants Replies Views Activity
General · by ian russell, 4 days ago
2 107 3 days ago
General · by pamtbaau, 1 month ago
2 371 1 week ago
General · by Hanns Mattes, 1 month ago
2 355 2 weeks ago
General · by Andy Miller, 1 month ago
0 258 1 month ago
General · by Jerry Hunt, 1 month ago
2 398 1 month ago