fixed cache_update for lua