If you use a proper caching module, especially the meta cache module CHI I suggested, you will not have to do anything manually. The cache self-manages. You just tell it when setting entries when and how they expire. And they don't have to go to the file system directly, they can be DB based, RAM based, whatever.
| [reply] |