Zeile 1 | Zeile 1 |
---|
<?php /** * MyBB 1.4
|
<?php /** * MyBB 1.4
|
* Copyright � 2008 MyBB Group, All Rights Reserved
| * Copyright © 2008 MyBB Group, All Rights Reserved
|
* * Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* * Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: memcache.php 4053 2008-07-31 04:56:19Z Tikitiki $
| * $Id: memcache.php 4450 2009-09-05 16:06:36Z RyanGordon $
|
*/
/**
| */
/**
|
Zeile 24 | Zeile 24 |
---|
*/ var $unique_id;
|
*/ var $unique_id;
|
function memcacheCacheHandler()
| function memcacheCacheHandler($silent=false)
|
{ if(!function_exists("memcache_connect")) {
|
{ if(!function_exists("memcache_connect")) {
|
die("Your server does not have memcache support enabled.");
| // Check if our DB engine is loaded if(!extension_loaded("Memcache")) { // Try and manually load it - DIRECTORY_SEPARATOR checks if running windows if(DIRECTORY_SEPARATOR == '\\') { @dl('php_memcache.dll'); } else { @dl('memcache.so'); } // Check again to see if we've been able to load it if(!extension_loaded("Memcache") && !$silent) { // Throw our super awesome cache loading error die("Your server does not have memcache support enabled."); $mybb->trigger_generic_error("sql_load_error"); } }
|
} }
| } }
|
Zeile 43 | Zeile 63 |
---|
if(!$mybb->config['memcache_host']) {
|
if(!$mybb->config['memcache_host']) {
|
die("Plesse configure the memcache settings in inc/config.php before attempting to use this cache handler");
| die("Please configure the memcache settings in inc/config.php before attempting to use this cache handler");
|
}
if(!$mybb->config['memcache_port'])
| }
if(!$mybb->config['memcache_port'])
|
Zeile 59 | Zeile 79 |
---|
}
// Set a unique identifier for all queries in case other forums are using the same memcache server
|
}
// Set a unique identifier for all queries in case other forums are using the same memcache server
|
$this->unique_id = md5($mybb->settings['bburl']);
| $this->unique_id = md5(MYBB_ROOT);
|
return true; }
| return true; }
|
Zeile 124 | Zeile 144 |
---|
return $lang->na; } }
|
return $lang->na; } }
|
| ?>
|