From c52270aeea44bf3b93772edb763975980933f173 Mon Sep 17 00:00:00 2001
From: ricovandevin <finlet@1243726.no-reply.drupal.org>
Date: Fri, 12 Nov 2021 10:07:14 +0000
Subject: [PATCH] Issue #3248990 - Replaced flushing of all caches by
 invalidation of library_info cache tag

---
 css_editor.module | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/css_editor.module b/css_editor.module
index 313e67e..1a9f921 100644
--- a/css_editor.module
+++ b/css_editor.module
@@ -116,8 +116,8 @@ function _css_editor_theme_settings_form_submit($form, FormStateInterface $form_
       ->set('css', $form_state->getValue(['css_editor', 'css']))
       ->set('path', $file)
       ->save();
-    // Clear cache.
-    drupal_flush_all_caches();
+    // Invalidate the libraries cache.
+    \Drupal::service('cache_tags.invalidator')->invalidateTags(['library_info']);
   }
   // Remove the settings from the form state so the values are not saved in the
   // theme settings.
-- 
GitLab