update cache entry