Skip to content
Snippets Groups Projects
Commit c52270ae authored by Rico Van de Vin's avatar Rico Van de Vin Committed by Andrii Podanenko
Browse files

Issue #3248990 - Replaced flushing of all caches by invalidation of library_info cache tag

parent 0d1b3684
Branches 8.x-1.x
No related tags found
1 merge request!1Issue #3248990 - Replaced flushing of all caches by invalidation of library_info cache tag
...@@ -116,8 +116,8 @@ function _css_editor_theme_settings_form_submit($form, FormStateInterface $form_ ...@@ -116,8 +116,8 @@ function _css_editor_theme_settings_form_submit($form, FormStateInterface $form_
->set('css', $form_state->getValue(['css_editor', 'css'])) ->set('css', $form_state->getValue(['css_editor', 'css']))
->set('path', $file) ->set('path', $file)
->save(); ->save();
// Clear cache. // Invalidate the libraries cache.
drupal_flush_all_caches(); \Drupal::service('cache_tags.invalidator')->invalidateTags(['library_info']);
} }
// Remove the settings from the form state so the values are not saved in the // Remove the settings from the form state so the values are not saved in the
// theme settings. // theme settings.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment