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.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
General
The asset folder from grav is not intended for uploading your own images: https://learn.getgrav.org/basics/folder-structure#assets
I did that for a full day until I figured out the bigger picture 😭
@chris_jung, :see_no_evil: I thought this just applies to the root's assets folder... Thank you for the hint!
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.
My fault I misread that /mytheme/ - Thing.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 85 | 13 hours ago | ||
| 1 | 60 | 17 hours ago | ||
| 0 | 47 | 1 day ago | ||
| 6 | 350 | 5 days ago | ||
| 3 | 44 | 5 days ago |