update query, cache invalidation