-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete local diagram files that are no longer used #50
Comments
Is it not easier to write a maintenance script that removes all of the diagram images? They will be regenerated whenever a page is visited anyways.. |
That would work for the default of having a It'd be slow on wikis with very many files, but perhaps that's okay. It wouldn't have to be run very often. |
I think you're missing a |
Add new maintenance script to delete diagram files older than one day. Bug: #50
I've got the maintenance script working now (PR #74). It can delete based on the age of the files: what would a good default be? I was thinking maybe 30 days. It can always be overridden with e.g. |
Nice, I think 30 is good for starters, its a wild guess tho. |
Add new maintenance script to delete diagram files older than 30 days. Bug: #50
Add new maintenance script to delete diagram files older than 30 days. Bug: #50
Done, and released as 0.12.0. Can probably do more here, such as adding a page parser property that records which files are in use so they don't get deleted. |
Diagram images are rendered for every preview and page-save, and are never deleted. This means that diagram images will remain even if they're not in use anywhere on a wiki.
This does not apply when using the external rendering service.
The text was updated successfully, but these errors were encountered: