mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user