Added event listener for deleting cache