From 7ad0171a39f28d4cf53c53a334506cbe29fa177f Mon Sep 17 00:00:00 2001 From: 22Alexandra Date: Fri, 18 Oct 2024 09:56:56 +0300 Subject: [PATCH] EWPP-4835: Flush cache for oe_theme_publication_thumbnail image style after it has been updated. --- .../oe_theme_content_publication.post_update.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/oe_theme_content_publication/oe_theme_content_publication.post_update.php b/modules/oe_theme_content_publication/oe_theme_content_publication.post_update.php index aafeba2ce..2d2cad4a9 100644 --- a/modules/oe_theme_content_publication/oe_theme_content_publication.post_update.php +++ b/modules/oe_theme_content_publication/oe_theme_content_publication.post_update.php @@ -251,3 +251,14 @@ function oe_theme_content_publication_post_update_00011(): void { } } } + +/** + * Flush caches for the image style updated in post_update_00011. + */ +function oe_theme_content_publication_post_update_00012(): void { + $image_style = ImageStyle::load('oe_theme_publication_thumbnail'); + if (!$image_style) { + return; + } + $image_style->flush(); +}