You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Caddy with the --watch flag, the UnmarshalCaddyfile method is called frequently on all plugins, even when there are no changes to the configuration file. This leads to unnecessary parsing and processing, impacting performance.
Steps to Reproduce:
Create a custom Caddy plugin with logging in UnmarshalCaddyfile.
Configure Caddy to use this plugin in the Caddyfile.
Run Caddy with the command: caddy run --config Caddyfile --watch.
Observe the logs showing repeated calls to UnmarshalCaddyfile without configuration changes.
Expected Behavior:
UnmarshalCaddyfile should only be called when there are actual changes to the configuration file.
Actual Behavior:
The method is called every second, even when no changes occur.
note: This is similar to #5538 however it's due to a different underlying issue
The text was updated successfully, but these errors were encountered:
Reload the Caddy config when the raw content of the
Caddyfile changes, rather than only when the parsed
configuration changes. This ensures that changes to
comments or other non-functional parts of the
Caddyfile still trigger a reload.
When running Caddy with the
--watch
flag, theUnmarshalCaddyfile
method is called frequently on all plugins, even when there are no changes to the configuration file. This leads to unnecessary parsing and processing, impacting performance.Steps to Reproduce:
UnmarshalCaddyfile
.Caddyfile
.caddy run --config Caddyfile --watch
.UnmarshalCaddyfile
without configuration changes.Expected Behavior:
UnmarshalCaddyfile
should only be called when there are actual changes to the configuration file.Actual Behavior:
The method is called every second, even when no changes occur.
note: This is similar to #5538 however it's due to a different underlying issue
The text was updated successfully, but these errors were encountered: