Problem/Motivation
Followup to #2901948: Support Bulmaswatch custom themes.
On theme settings form submission we flush caches so that any change in library configuration (Bulma or Bulmaswatch) will take effect immediately.
However, other theme settings changes don't require a cache flush.
Proposed resolution
- In a validation handler, examine relevant submitted values and set a flag indicating whether one of them has changed.
- In the submission handler, make cache flushing conditional on that flag.
Comments
Comment #2
nedjoComment #4
nedjo