From ade38ff2d176dc5a91de73b08ff5f2333e8dc603 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Wed, 19 Aug 2026 22:42:01 +0200 Subject: [PATCH] Clear watermark cache after profile changes --- tools/watermark_profiles.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/watermark_profiles.inc.php b/tools/watermark_profiles.inc.php index 7ee37bd..cd45e25 100644 --- a/tools/watermark_profiles.inc.php +++ b/tools/watermark_profiles.inc.php @@ -128,6 +128,7 @@ function bratonien_tools_save_watermark_profile() mass_inserts($table, array_keys($data), array($data)); } + bratonien_tools_clear_watermark_cache(); return array('message'=>'Wasserzeichenprofil gespeichert.'); } @@ -158,6 +159,7 @@ function bratonien_tools_delete_watermark_profile() } pwg_query('DELETE FROM '.bratonien_tools_table('watermark_profiles').' WHERE id='.$id); + bratonien_tools_clear_watermark_cache(); return array('message'=>'Wasserzeichenprofil geloescht.'); } @@ -174,6 +176,7 @@ function bratonien_tools_duplicate_watermark_profile() $profile['name'] .= ' (Kopie)'; $profile['created'] = date('Y-m-d H:i:s'); mass_inserts(bratonien_tools_table('watermark_profiles'), array_keys($profile), array($profile)); + bratonien_tools_clear_watermark_cache(); return array('message'=>'Wasserzeichenprofil dupliziert.'); }