On Tue, 20 Aug 2002, Perrin Harkins wrote: > Jie Gao wrote: > > I wish some of these modules would be able to "touch" cached data so that > > it would expire cache entries on "last-accessed" rather than on the time > > the entries were created. > > Why? People used to do that with cached because they had limited space > and wanted to purge the cache with an LRU algorithm to keep size down, > but disk space is too cheap to worry about now. > > If an item in the cache is okay to stay there as long as people are > accessing it, you are essentially saying that cached items never become > invalid. In that case, why bother ever deleting any of them?
There are cases in which it is desirable to expire an entry which hasn't been used for a certain period of time; authenticated sessions data, for example. Absolute expiration is indeed needed, as well. Regards, Jie