Delete old configuration when changing template
When we want to change nginx template. The current hestiacp will only check if there is a 'proxy_cache_path' setting for this domain in '/etc/nginx/conf.d/01_caching_pool.conf'. if there is, hestia will skip adding config again. Because hestia will assume the configuration still the same. Remember, Other template can also change this config.
We need to delete previous config and reinstall our config again. Just to make sure if other template changing "proxy_cache_path" configuration. for example:
-) previous template changed " keys_zone" parameter, when we changed to 'caching' template. it will cause: "new_name" zone "example.com" is unknown
-) previous template changed "levels" parameter, when we changed to 'caching' template. it will cause: "example.com" had previously different levels