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

Images deleted after Clear Cache

Started by Patrick Hoehn 9 years ago · 5 replies · 890 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 Jerry Hunt, 4 days ago
2 85 13 hours ago
General · by pamtbaau, 18 hours ago
1 60 17 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 350 5 days ago
General · by Duc , 6 days ago
3 44 5 days ago