From 076acc2035c0ee05aa90c61d90485ad3c58f4ffc Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 9 Sep 2022 12:42:11 +0200 Subject: [PATCH] fixes #1709 incorrect pattern to delete custom sizes --- admin/include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/include/functions.php b/admin/include/functions.php index d234449dc0..38bbdc5732 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -2951,7 +2951,7 @@ function clear_derivative_cache($types='all') $type = $types[$i]; if ($type == IMG_CUSTOM) { - $type = derivative_to_url($type).'[a-zA-Z0-9]+'; + $type = derivative_to_url($type).'_[a-zA-Z0-9]+'; } elseif (in_array($type, ImageStdParams::get_all_types())) {