| @@ -709,9 +709,11 @@ | ||
| 709 | 709 | $settings = $this->preserve_role_settings( $settings ); |
| 710 | 710 | } |
| 711 | 711 | |
| 712 | 712 | $this->set( 'settings', $settings ); |
| 713 | - delete_transient( 'nx_get_field_names' ); | |
| 713 | + // Module toggles change which builder fields exist, and | |
| 714 | + // NotificationX::normalize_post() coerces field types from this cache. | |
| 715 | + delete_transient( 'nx_builder_fields' ); | |
| 714 | 716 | // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context. |
| 715 | 717 | do_action( 'nx_settings_saved', $settings ); |
| 716 | 718 | return true; |
| 717 | 719 | } |