aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-11-17 22:12:15 +0000
committerrub <rub@piwigo.org>2008-11-17 22:12:15 +0000
commite037bbe726d8819de81ee99e28e0e18aaddc38ca (patch)
tree1e47910911f05d16ac9bb28bcdc1b3f11c01c42e /admin/include/functions.php
parent3b0caa8de442a1028a78d2cf48aff4d3997729b3 (diff)
Delete cache data when category is deleted.
merge -c2882 from trunk to branch 2.0 The exact copy of commit log in 2882. git-svn-id: http://piwigo.org/svn/branches/2.0@2883 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);
}