Added automatic backup function to cache validation