1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

some corrections, only very minor things.

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9554 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2009-06-07 11:34:01 +00:00
parent 711f482cb6
commit a539fca62b
19 changed files with 264 additions and 257 deletions

View File

@@ -32,6 +32,11 @@ if (!defined('PHPBB_ACM_MEMCACHE_COMPRESS'))
define('PHPBB_ACM_MEMCACHE_COMPRESS', false);
}
if (!defined('PHPBB_ACM_MEMCACHE_HOST'))
{
define('PHPBB_ACM_MEMCACHE_HOST', 'localhost');
}
/**
* ACM for Memcached
* @package acm
@@ -48,11 +53,6 @@ class acm extends acm_memory
// Call the parent constructor
parent::acm_memory();
if (!defined('PHPBB_ACM_MEMCACHE_HOST'))
{
trigger_error('Missing required constant [PHPBB_ACM_MEMCACHE_HOST] for memcache ACM module.', E_USER_ERROR);
}
$this->memcache = new Memcache;
$this->memcache->connect(PHPBB_ACM_MEMCACHE_HOST, PHPBB_ACM_MEMCACHE_PORT);
$this->flags = (PHPBB_ACM_MEMCACHE_COMPRESS) ? MEMCACHE_COMPRESSED : 0;

View File

@@ -156,7 +156,7 @@ class acm_memory
while (($entry = readdir($dir)) !== false)
{
if (strpos($entry, 'ctpl_') !== 0 && strpos($entry, 'tpl_') !== 0)
if (strpos($entry, 'sql_') !== 0 && strpos($entry, 'data_') !== 0 && strpos($entry, 'ctpl_') !== 0 && strpos($entry, 'tpl_') !== 0)
{
continue;
}
@@ -415,7 +415,7 @@ class acm_memory
* @access protected
* @param string $var Cache key
* @return bool True if it exists, otherwise false
*/
*/
function _isset($var)
{
// Most caches don't need to check

View File

@@ -27,7 +27,6 @@ class acm
*/
function acm()
{
}
/**
@@ -43,7 +42,6 @@ class acm
*/
function unload()
{
}
/**
@@ -51,7 +49,6 @@ class acm
*/
function save()
{
}
/**
@@ -76,7 +73,6 @@ class acm
*/
function put($var_name, $var, $ttl = 0)
{
}
/**
@@ -84,7 +80,6 @@ class acm
*/
function purge()
{
}
/**
@@ -92,7 +87,6 @@ class acm
*/
function destroy($var_name, $table = '')
{
}
/**
@@ -116,7 +110,6 @@ class acm
*/
function sql_save($query, &$query_result, $ttl)
{
}
/**