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:
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user