Changed condition of recording logs and I/F of update_cache()