We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7948c96 + b7c2108 commit f6e257cCopy full SHA for f6e257c
matomo.admin.inc
@@ -426,10 +426,20 @@ function matomo_admin_settings_form($form_state) {
426
);
427
428
$form['#config'] = 'matomo.settings';
429
+ $form['#submit'] = array('_matomo_admin_flush_cache');
430
431
return system_settings_form($form);
432
}
433
434
+/**
435
+ * Additional callback on admin form submit.
436
+ *
437
+ * Flush the page cache as the tracking code visibility could have changed.
438
+ */
439
+function _matomo_admin_flush_cache() {
440
+ cache_flush('page');
441
+}
442
+
443
function matomo_admin_settings_form_validate($form, &$form_state) {
444
// Custom variables validation.
445
foreach ($form_state['values']['custom_var']['slots'] as $custom_var) {
0 commit comments