-
Notifications
You must be signed in to change notification settings - Fork 192
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
Limit total size of cached tiles #223
Comments
@trohsb If you're trying to do something like that, https://github.com/SomeoneElseOSM/mod_tile/blob/zoom/purge_old_tiles.sh might be a useful example to start from. See also https://github.com/SomeoneElseOSM/mod_tile/blob/zoom/report_tile_size.sh and https://github.com/SomeoneElseOSM/mod_tile/blob/zoom/report_database_size.sh . Each of those may need modifying to match your tile location. database location and mod_tile version of course. |
There are so many useful scripts around mod_tile. Wondering if at some point it would make sense to put them all together in a helper program with command-line arguments 🤔 |
For now, @SomeoneElseOSM, do you think it would make sense to add these scripts to the |
Yes - but you'd ned to make sure that https://github.com/SomeoneElseOSM/mod_tile/blob/zoom/purge_old_tiles.sh was using the standard mod_tiles's "long time ago" (20 years) as opposed to mine (10k days, which I chose because it's more visible when you're looking at dates on disk) |
Is it possible to limit the total size of cached files to say 512MB and then delete tiles based on last accessed timestamps when space is needed?
The text was updated successfully, but these errors were encountered: