aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm/acm_xcache.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2009-06-04 15:59:42 +0000
committerChris Smith <toonarmy@phpbb.com>2009-06-04 15:59:42 +0000
commit832c6b2f62917b0c456c7a9f33f40d2ebeb75387 (patch)
treea56f44e7452a3bf6fdc88290b76d83d544936af2 /phpBB/includes/acm/acm_xcache.php
parentcd1c5de3a508ec851b11baf4095449c66ee6c770 (diff)
downloadforums-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_xcache.php')
-rw-r--r--phpBB/includes/acm/acm_xcache.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/acm/acm_xcache.php b/phpBB/includes/acm/acm_xcache.php
index 5b4ecd68d8..9cb8eae272 100644
--- a/phpBB/includes/acm/acm_xcache.php
+++ b/phpBB/includes/acm/acm_xcache.php
@@ -62,7 +62,7 @@ class acm extends acm_memory
*/
function _read($var)
{
- return xcache_get($var);
+ return xcache_get($this->key_prefix . $var);
}
/**
@@ -76,7 +76,7 @@ class acm extends acm_memory
*/
function _write($var, $data, $ttl = 2592000)
{
- return xcache_set($var, $data, $ttl);
+ return xcache_set($this->key_prefix . $var, $data, $ttl);
}
/**
@@ -88,7 +88,7 @@ class acm extends acm_memory
*/
function _delete($var)
{
- return xcache_unset($var);
+ return xcache_unset($this->key_prefix . $var);
}
/**
@@ -101,7 +101,7 @@ class acm extends acm_memory
function _isset($var)
{
// Most caches don't need to check
- return xcache_isset($var);
+ return xcache_isset($this->key_prefix . $var);
}
}