update cache handling