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 · 889 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 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago