Created clear mechanism for cache