aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-06-07 18:12:38 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-06-07 18:12:38 +0000
commite1cf8fd13c1030b0a1ee5d2e25bac48bd89e8f18 (patch)
tree9f7203ab80c4ef3fdd027e909f1829163014bec5 /phpBB/includes/functions_admin.php
parent5232ded67ea90f77e475a2a46c6238b5a69ba61a (diff)
downloadforums-e1cf8fd13c1030b0a1ee5d2e25bac48bd89e8f18.tar
forums-e1cf8fd13c1030b0a1ee5d2e25bac48bd89e8f18.tar.gz
forums-e1cf8fd13c1030b0a1ee5d2e25bac48bd89e8f18.tar.bz2
forums-e1cf8fd13c1030b0a1ee5d2e25bac48bd89e8f18.tar.xz
forums-e1cf8fd13c1030b0a1ee5d2e25bac48bd89e8f18.zip
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
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php3
1 files changed, 3 insertions, 0 deletions
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);