From e1cf8fd13c1030b0a1ee5d2e25bac48bd89e8f18 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Wed, 7 Jun 2006 18:12:38 +0000 Subject: fix bug #2086 remove cached sql results for moderator cache table if re-applying moderators git-svn-id: file:///svn/phpbb/trunk@6019 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'phpBB/includes/functions_admin.php') diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 91cd9cd05c..053449c528 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -1872,6 +1872,9 @@ function cache_moderators() { global $db, $cache, $auth, $phpbb_root_path, $phpEx; + // Remove cached sql results + $cache->destroy('sql', MODERATOR_TABLE); + // Clear table $db->sql_query(((SQL_LAYER != 'sqlite') ? 'TRUNCATE TABLE ' : 'DELETE FROM ') . MODERATOR_TABLE); -- cgit v1.2.1