This currently requires a manual / external process. I'd recommend
setting up a cronjob that runs something like:
find /var/cache/rack -type f -mtime +5 | xargs rm -f
That will delete any entries that have not been served for more than five days.
The disk stores are designed to allow individual files to be removed
at any time, so you shouldn't have to worry about this causing
problems at the app level.
Thanks,
Ryan
--
You received this message because you are subscribed to the Google Groups "rack-cache" group.
To post to this group, send email to rack-...@googlegroups.com.
To unsubscribe from this group, send email to rack-cache+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rack-cache?hl=en.
The metadata and blob's timestamps can get out of sync but if you
remove a blob, the next cache hit will detect that it's gone and treat
it as a miss, cleaning up the metadata along the way. It's not a
perfect system (you can end up with blobs or metadata files that have
aren't paired properly) but it's very simple and should work fine for
keeping disk use down.
--