API for clearing cache : null pointer