From 5ed2bf0458ed623ee9c4be18a2875d385d473c4c Mon Sep 17 00:00:00 2001 From: rub Date: Mon, 17 Nov 2008 22:10:03 +0000 Subject: Delete cache data when category is deleted. git-svn-id: http://piwigo.org/svn/trunk@2882 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'admin/include') diff --git a/admin/include/functions.php b/admin/include/functions.php index e67925073..d7369ddf0 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -114,11 +114,16 @@ DELETE FROM '.CATEGORIES_TABLE.' ;'; pwg_query($query); - $query=' + $query=' DELETE FROM '.OLD_PERMALINKS_TABLE.' WHERE cat_id IN ('.implode(',',$ids).')'; pwg_query($query); + $query=' +DELETE FROM '.USER_CACHE_CATEGORIES_TABLE.' + WHERE cat_id IN ('.implode(',',$ids).')'; + pwg_query($query); + trigger_action('delete_categories', $ids); } -- cgit v1.2.3