How to auto-clean or disable cache? #7251
documentat-alibaev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I understand, Wiki.js has two places where it stores each image:
assetsData
table in the database (forever),data/cache
directory (until a restart).An image seems to be added to the directory whenever Wiki.js needs to process it and stays there until Wiki.js restarts. Because of that, the directory can grow basically indefinitely if I decide to upload many images and rarely restart the server. For example, if I upload a total of 1GB of images, they will take 1GB in the database + 1GB in the directory, and there does not seem to be any way to clean the directory until a restart. Is this ok?
Am I supposed to have a separate crontab script that cleans the cache, or am I missing something? Why does not Wiki.js remove older files from cache?
Beta Was this translation helpful? Give feedback.
All reactions