Fixed the code to clear CAS cache