diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-04-22 18:09:03 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-04-22 18:09:03 +0000 |
commit | 5cb586461b2b0a48d98ad7a40b0449cc5a5d9c81 (patch) | |
tree | 2f4f211b7d2e9b1ed22ea0b7927ce1481e1e8182 /phpBB/includes/cache.php | |
parent | 5742dcd68a674b31b91fc39978aeaf6d74c48ceb (diff) | |
download | forums-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/cache.php')
-rw-r--r-- | phpBB/includes/cache.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/cache.php b/phpBB/includes/cache.php index a8931f3163..1f22d60a7f 100644 --- a/phpBB/includes/cache.php +++ b/phpBB/includes/cache.php @@ -79,7 +79,7 @@ class cache extends acm return array(); } - if (($censors = $this->get('word_censors')) === false) + if (($censors = $this->get('_word_censors')) === false) { $sql = 'SELECT word, replacement FROM ' . WORDS_TABLE; @@ -93,7 +93,7 @@ class cache extends acm } $db->sql_freeresult($result); - $this->put('word_censors', $censors); + $this->put('_word_censors', $censors); } return $censors; @@ -104,7 +104,7 @@ class cache extends acm */ function obtain_icons() { - if (($icons = $this->get('icons')) === false) + if (($icons = $this->get('_icons')) === false) { global $db; @@ -124,7 +124,7 @@ class cache extends acm } $db->sql_freeresult($result); - $this->put('icons', $icons); + $this->put('_icons', $icons); } return $icons; @@ -135,7 +135,7 @@ class cache extends acm */ function obtain_ranks() { - if (($ranks = $this->get('ranks')) === false) + if (($ranks = $this->get('_ranks')) === false) { global $db; @@ -165,7 +165,7 @@ class cache extends acm } $db->sql_freeresult($result); - $this->put('ranks', $ranks); + $this->put('_ranks', $ranks); } return $ranks; @@ -285,7 +285,7 @@ class cache extends acm */ function obtain_bots() { - if (($bots = $this->get('bots')) === false) + if (($bots = $this->get('_bots')) === false) { global $db; @@ -323,7 +323,7 @@ class cache extends acm } $db->sql_freeresult($result); - $this->put('bots', $bots); + $this->put('_bots', $bots); } return $bots; |