aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-04-22 18:09:03 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-04-22 18:09:03 +0000
commit5cb586461b2b0a48d98ad7a40b0449cc5a5d9c81 (patch)
tree2f4f211b7d2e9b1ed22ea0b7927ce1481e1e8182 /phpBB/includes/acp
parent5742dcd68a674b31b91fc39978aeaf6d74c48ceb (diff)
downloadforums-5cb586461b2b0a48d98ad7a40b0449cc5a5d9c81.tar
forums-5cb586461b2b0a48d98ad7a40b0449cc5a5d9c81.tar.gz
forums-5cb586461b2b0a48d98ad7a40b0449cc5a5d9c81.tar.bz2
forums-5cb586461b2b0a48d98ad7a40b0449cc5a5d9c81.tar.xz
forums-5cb586461b2b0a48d98ad7a40b0449cc5a5d9c81.zip
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
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_bots.php8
-rw-r--r--phpBB/includes/acp/acp_icons.php8
-rw-r--r--phpBB/includes/acp/acp_ranks.php4
-rw-r--r--phpBB/includes/acp/acp_words.php4
-rw-r--r--phpBB/includes/acp/auth.php6
5 files changed, 15 insertions, 15 deletions
diff --git a/phpBB/includes/acp/acp_bots.php b/phpBB/includes/acp/acp_bots.php
index 0498aed848..3c7fe9f1f3 100644
--- a/phpBB/includes/acp/acp_bots.php
+++ b/phpBB/includes/acp/acp_bots.php
@@ -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 . "&amp;id=$bot_id&amp;action=$action"));
diff --git a/phpBB/includes/acp/acp_icons.php b/phpBB/includes/acp/acp_icons.php
index 4433119b7c..801b61112f 100644
--- a/phpBB/includes/acp/acp_icons.php
+++ b/phpBB/includes/acp/acp_icons.php
@@ -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;
diff --git a/phpBB/includes/acp/acp_ranks.php b/phpBB/includes/acp/acp_ranks.php
index 5b593a4d27..e0f6aa9a0b 100644
--- a/phpBB/includes/acp/acp_ranks.php
+++ b/phpBB/includes/acp/acp_ranks.php
@@ -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);
}
diff --git a/phpBB/includes/acp/acp_words.php b/phpBB/includes/acp/acp_words.php
index a35b7e5156..7e971d8e0f 100644
--- a/phpBB/includes/acp/acp_words.php
+++ b/phpBB/includes/acp/acp_words.php
@@ -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);
diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php
index 79ab7d0c21..10f5633f1e 100644
--- a/phpBB/includes/acp/auth.php
+++ b/phpBB/includes/acp/auth.php
@@ -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;