1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

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
This commit is contained in:
Chris Smith
2009-06-04 15:59:42 +00:00
parent cd1c5de3a5
commit 832c6b2f62
5 changed files with 19 additions and 15 deletions

View File

@@ -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))
{