It sounds like something is creating a cached version and serving as a static page.
Try disabling all caching plugins and try again.
Here are some examples of plugins to look out for: https://en-gb.wordpress.org/plugins/search/caching/
Once you have finished updates to your file then you can re-activate, or alternatively manually delete the cache in the plugin settings.