mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
changed the cache files to save some memory (all global ones are hold in memory, doubling it).
git-svn-id: file:///svn/phpbb/trunk@7386 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -50,7 +50,7 @@ class acp_bots
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
$cache->destroy('bots');
|
||||
$cache->destroy('_bots');
|
||||
break;
|
||||
|
||||
case 'deactivate':
|
||||
@@ -64,7 +64,7 @@ class acp_bots
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
$cache->destroy('bots');
|
||||
$cache->destroy('_bots');
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
@@ -107,7 +107,7 @@ class acp_bots
|
||||
|
||||
$db->sql_transaction('commit');
|
||||
|
||||
$cache->destroy('bots');
|
||||
$cache->destroy('_bots');
|
||||
|
||||
add_log('admin', 'LOG_BOT_DELETE', implode(', ', $bot_name_ary));
|
||||
trigger_error($user->lang['BOT_DELETED'] . adm_back_link($this->u_action));
|
||||
@@ -250,7 +250,7 @@ class acp_bots
|
||||
$log = 'UPDATED';
|
||||
}
|
||||
|
||||
$cache->destroy('bots');
|
||||
$cache->destroy('_bots');
|
||||
|
||||
add_log('admin', 'LOG_BOT_' . $log, $bot_row['bot_name']);
|
||||
trigger_error($user->lang['BOT_' . $log] . adm_back_link($this->u_action . "&id=$bot_id&action=$action"));
|
||||
|
@@ -285,7 +285,7 @@ class acp_icons
|
||||
}
|
||||
}
|
||||
|
||||
$cache->destroy('icons');
|
||||
$cache->destroy('_icons');
|
||||
$cache->destroy('sql', $table);
|
||||
|
||||
if ($action == 'modify')
|
||||
@@ -446,7 +446,7 @@ class acp_icons
|
||||
}
|
||||
}
|
||||
|
||||
$cache->destroy('icons');
|
||||
$cache->destroy('_icons');
|
||||
$cache->destroy('sql', $table);
|
||||
|
||||
trigger_error($user->lang[$lang . '_IMPORT_SUCCESS'] . adm_back_link($this->u_action));
|
||||
@@ -565,7 +565,7 @@ class acp_icons
|
||||
|
||||
$notice = $user->lang[$lang . '_DELETED'];
|
||||
|
||||
$cache->destroy('icons');
|
||||
$cache->destroy('_icons');
|
||||
$cache->destroy('sql', $table);
|
||||
}
|
||||
else
|
||||
@@ -617,7 +617,7 @@ class acp_icons
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
$cache->destroy('icons');
|
||||
$cache->destroy('_icons');
|
||||
$cache->destroy('sql', $table);
|
||||
|
||||
break;
|
||||
|
@@ -74,7 +74,7 @@ class acp_ranks
|
||||
}
|
||||
$db->sql_query($sql);
|
||||
|
||||
$cache->destroy('ranks');
|
||||
$cache->destroy('_ranks');
|
||||
|
||||
trigger_error($message . adm_back_link($this->u_action));
|
||||
|
||||
@@ -105,7 +105,7 @@ class acp_ranks
|
||||
WHERE user_rank = $rank_id";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$cache->destroy('ranks');
|
||||
$cache->destroy('_ranks');
|
||||
|
||||
add_log('admin', 'LOG_RANK_REMOVED', $rank_title);
|
||||
}
|
||||
|
@@ -91,7 +91,7 @@ class acp_words
|
||||
$db->sql_query('INSERT INTO ' . WORDS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));
|
||||
}
|
||||
|
||||
$cache->destroy('word_censors');
|
||||
$cache->destroy('_word_censors');
|
||||
|
||||
$log_action = ($word_id) ? 'LOG_WORD_EDIT' : 'LOG_WORD_ADD';
|
||||
add_log('admin', $log_action, $word);
|
||||
@@ -123,7 +123,7 @@ class acp_words
|
||||
WHERE word_id = $word_id";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$cache->destroy('word_censors');
|
||||
$cache->destroy('_word_censors');
|
||||
|
||||
add_log('admin', 'LOG_WORD_DELETE', $deleted_word);
|
||||
|
||||
|
@@ -30,7 +30,7 @@ class auth_admin extends auth
|
||||
{
|
||||
global $db, $cache;
|
||||
|
||||
if (($this->acl_options = $cache->get('acl_options')) === false)
|
||||
if (($this->acl_options = $cache->get('_acl_options')) === false)
|
||||
{
|
||||
$sql = 'SELECT auth_option, is_global, is_local
|
||||
FROM ' . ACL_OPTIONS_TABLE . '
|
||||
@@ -53,7 +53,7 @@ class auth_admin extends auth
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$cache->put('acl_options', $this->acl_options);
|
||||
$cache->put('_acl_options', $this->acl_options);
|
||||
}
|
||||
|
||||
if (!sizeof($this->option_ids))
|
||||
@@ -761,7 +761,7 @@ class auth_admin extends auth
|
||||
|
||||
$db->sql_multi_insert(ACL_OPTIONS_TABLE, $sql_ary);
|
||||
|
||||
$cache->destroy('acl_options');
|
||||
$cache->destroy('_acl_options');
|
||||
$this->acl_clear_prefetch();
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user