If you are developing locally, to see your changes made in Twig instantly, then you should enable in config.local.php the development mode.
On the live server, other side you should keep the variable as "prod" as it makes the page faster. Then the only way to refresh the changes is to clear cache in Admin Panel.