If the DisableExpiration property is set to true, the cached items never expire. This setting is intended to help debug cache behavior in application code. Use caution when disabling cache expiration, as this might result in items being cached longer than they are valid.
// Get the current DisableExpiration property value.
Boolean disableExpirationValue =
// Set the DisableExpiration property to false.
cacheSection.DisableExpiration = false;