[OpenLayers-Users] Tilecache: managing the cache size
Matthew Perry
perrygeo at gmail.com
Tue Dec 5 03:46:06 EST 2006
Hey folks,
Just started playing with TileCache today ... a great piece of
software and it really gives a speed boost to OpenLayers backends.
After a recent conversation on #openlayers, it became quickly
apparently that the disk space consumed by a tile cache could get out
of hand very quickly. I came up with a quick one-liner to keep the
cache size manageable. If the file hasn't been accessed for 120
minutes, it is deleted. The theory is that there is less need to cache
infrequently-accessed tiles.
find /tmp/tilecache -type f -amin +120 -exec rm -rf {} \;
It would be great to have some sort of more advanced cache-management
script included in the TileCache release. Any other ideas floating
around about how to best manage the cache and keep it under control??
--
Matthew T. Perry
GIS Analyst / Software Engineer
National Center for Ecological Analysis and Synthesis (NCEAS)
work: perry at nceas.ucsb.edu
web: http://www.perrygeo.net
More information about the Users
mailing list