Anand,
The cache is create and maintained if no results or results are found, and will be cached for the value outlined in the Cache LDAP attribute values fields. The checkbox for "Fail assertion if ..." will only change the behavior whether the assertion will fail or not but will not affect the caching.
Sincerely,
Stephen Hughes
Director, CA Support