Hello. Looking for general info about cachePut and...
# cfml-general
d
Hello. Looking for general info about cachePut and how timespan and idletime are related. Seems a bit unclear as to whether the cache can be maintained as long as it is accessed within idletime.
a
I've never actually tested it, but my understanding is that the
timespan
is the maximum amount of time to cache it for. The
idletime
is the maximum amount of time to cache it for without being accessed. So the
timespan
should be greater than the
idletime
(if both are used).
The
idletime
is a handy way to keep the number of cached items under control.