title: iOS store file in cache directory for set length of time
body: <p>We have a POS apartment leasing iPad app that is used to collect a lot of data about a user and their interests (with their knowledge of course).</p>
  
  <p>We use RestKit to sync CoreData with the server, which is totally sweet.</p>
  
  <p>I'm using text files in the cache directory to store a history of their interactions with a guest card, such that it can be submitted in case of error, or sent to us via email, to recreate any guest card in case of some sort of syncing issue.</p>
  
  <p>Although these should be very small text files, probably around 1-3k, I feel as though I should eventually clear these from the cache directory. (As I type this, maybe its so small I shouldn't worry about it).</p>
  
  <p>I was curious if there was any way to clear files from the cache directory after a set amount of time? Say 90 days or so?</p>