| @@ -8,8 +8,9 @@ | ||
| 8 | 8 | |
| 9 | 9 | namespace Forge12\DoubleOptIn\FormSettings; |
| 10 | 10 | |
| 11 | 11 | use Forge12\DoubleOptIn\EmailTemplates\EmailTemplateRepository; |
| 12 | +use Forge12\DoubleOptIn\Health\StaleConsentFieldCheck; | |
| 12 | 13 | use Forge12\DoubleOptIn\Integration\FormIntegrationRegistry; |
| 13 | 14 | use Forge12\DoubleOptIn\Integration\SubmittedContent; |
| 14 | 15 | use Forge12\Shared\LoggerInterface; |
| 15 | 16 | |
| @@ -143,8 +144,14 @@ | ||
| 143 | 144 | 'form_id' => $formId, |
| 144 | 145 | 'enabled' => $settings->enabled, |
| 145 | 146 | ) |
| 146 | 147 | ); |
| 148 | + | |
| 149 | + // The acceptance-field health check caches its scan for hours. | |
| 150 | + // Someone who just saved these settings very likely did so to fix | |
| 151 | + // what that check reported, and a stale "still broken" would be a | |
| 152 | + // bad answer. | |
| 153 | + StaleConsentFieldCheck::flush(); | |
| 147 | 154 | |
| 148 | 155 | return true; |
| 149 | 156 | } |
| 150 | 157 | |