Skip to content

Commit

Permalink
EWPP-4835: Flush cache for oe_theme_publication_thumbnail image style…
Browse files Browse the repository at this point in the history
… after it has been updated.
  • Loading branch information
22Alexandra committed Oct 18, 2024
1 parent 0695da4 commit 0b48628
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 0b48628

Please sign in to comment.