Zeile 11 | Zeile 11 |
---|
/** * APC Cache Handler */
|
/** * APC Cache Handler */
|
class apcCacheHandler
| class apcCacheHandler implements CacheHandlerInterface
|
{ /** * Unique identifier representing this copy of MyBB
| { /** * Unique identifier representing this copy of MyBB
|
Zeile 20 | Zeile 20 |
---|
*/ public $unique_id;
|
*/ public $unique_id;
|
/** * @param bool $silent ignored */ function __construct($silent=false)
| function __construct()
|
{ global $mybb;
| { global $mybb;
|
Zeile 56 | Zeile 53 |
---|
* Connect and initialize this handler. * * @param string $name
|
* Connect and initialize this handler. * * @param string $name
|
* @param bool $hard_refresh ignored
| |
* @return boolean True if successful, false on failure */
|
* @return boolean True if successful, false on failure */
|
function fetch($name, $hard_refresh=false)
| function fetch($name)
|
{ if(apc_exists($this->unique_id."_".$name)) {
| { if(apc_exists($this->unique_id."_".$name)) {
|
Zeile 109 | Zeile 105 |
---|
* * @return string */
|
* * @return string */
|
function size_of($name)
| function size_of($name='')
|
{ global $lang;
| { global $lang;
|