Cache file cleanup and updated list of cached queries.