diff options
author | Chris Smith <toonarmy@phpbb.com> | 2009-06-04 15:59:42 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2009-06-04 15:59:42 +0000 |
commit | 832c6b2f62917b0c456c7a9f33f40d2ebeb75387 (patch) | |
tree | a56f44e7452a3bf6fdc88290b76d83d544936af2 /phpBB/includes/acm/acm_memory.php | |
parent | cd1c5de3a508ec851b11baf4095449c66ee6c770 (diff) | |
download | forums-832c6b2f62917b0c456c7a9f33f40d2ebeb75387.tar forums-832c6b2f62917b0c456c7a9f33f40d2ebeb75387.tar.gz forums-832c6b2f62917b0c456c7a9f33f40d2ebeb75387.tar.bz2 forums-832c6b2f62917b0c456c7a9f33f40d2ebeb75387.tar.xz forums-832c6b2f62917b0c456c7a9f33f40d2ebeb75387.zip |
Use unique per board cache keys per [1] important when using shared memory from opcode caches with multiple boards on one server.
[1] http://area51.phpbb.com/phpBB/viewtopic.php?p=201739#p201739
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9541 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm/acm_memory.php')
-rw-r--r-- | phpBB/includes/acm/acm_memory.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/acm/acm_memory.php b/phpBB/includes/acm/acm_memory.php index 85e7a7b9d7..c7b5d34a47 100644 --- a/phpBB/includes/acm/acm_memory.php +++ b/phpBB/includes/acm/acm_memory.php @@ -22,6 +22,8 @@ if (!defined('IN_PHPBB')) */ class acm_memory { + var $key_prefix; + var $vars = array(); var $is_modified = false; @@ -34,9 +36,10 @@ class acm_memory */ function acm_memory() { - global $phpbb_root_path; + global $phpbb_root_path, $dbname, $table_prefix; - $this->cache_dir = $phpbb_root_path . 'cache/'; + $this->cache_dir = $phpbb_root_path . 'cache/'; + $this->key_prefix = md5($dbname, $table_prefix) . '_'; if (!isset($this->extension) || !extension_loaded($this->extension)) { |