diff --git a/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php b/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php
index ff0ea88..0833ccd 100644
--- a/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php
+++ b/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\image\Entity;
 
+use Drupal\Core\Cache\Cache;
 use Drupal\Core\Config\Entity\ConfigEntityBase;
 use Drupal\Core\Config\Entity\EntityWithPluginBagInterface;
 use Drupal\Core\Entity\EntityStorageControllerInterface;
@@ -266,8 +267,9 @@ public function flush($path = NULL) {
     field_info_cache_clear();
     drupal_theme_rebuild();
 
-    // Clear page caches when flushing.
-    \Drupal::cache('page')->deleteAll();
+    // Invalidate the content cache.
+    Cache::invalidateTags(array('content' => TRUE));
+
     return $this;
   }
 
