aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-11-17 22:10:03 +0000
committerrub <rub@piwigo.org>2008-11-17 22:10:03 +0000
commit5ed2bf0458ed623ee9c4be18a2875d385d473c4c (patch)
tree830c960d75d2b2d5564bafcd0b44b2b0640e7197 /admin
parent59af44a8c2f4984e3d68321b5f4289833f8dddb1 (diff)
Delete cache data when category is deleted.
git-svn-id: http://piwigo.org/svn/trunk@2882 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php7
1 files changed, 6 insertions, 1 deletions
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);
}