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:
@@ -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