Skip to content

Commit

Permalink
Merge pull request #1519 from openeuropa/EWPP-4835
Browse files Browse the repository at this point in the history
EWPP-4835: Flush cache for oe_theme_publication_thumbnail image style after it has been updated.
  • Loading branch information
upchuk authored Dec 6, 2024
2 parents 2891284 + 7ad0171 commit 3466394
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 3466394

Please sign in to comment.