update cache accoring to latest changes