Vergleich inc/cachehandlers/eaccelerator.php - 1.8.6 - 1.8.36

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
/**
* eAccelerator Cache Handler
*/

/**
* eAccelerator Cache Handler
*/

class eacceleratorCacheHandler

class eacceleratorCacheHandler implements CacheHandlerInterface

{
/**
* Unique identifier representing this copy of MyBB

{
/**
* Unique identifier representing this copy of MyBB

Zeile 20Zeile 20
	 */
public $unique_id;


	 */
public $unique_id;


	/**
* @param bool $silent ignored
*/
function eacceleratorCacheHandler($silent=false)

	function __construct()




	{
global $mybb;


	{
global $mybb;


Zeile 56Zeile 53
	 * Retrieve an item from the cache.
*
* @param string $name The name of the cache

	 * Retrieve an item from the cache.
*
* @param string $name The name of the cache

	 * @param boolean $hard_refresh True if we should do a hard refresh

 
	 * @return mixed Cache data if successful, false if failure
*/

	 * @return mixed Cache data if successful, false if failure
*/

	function fetch($name, $hard_refresh=false)

	function fetch($name)

	{
$data = eaccelerator_get($this->unique_id."_".$name);
if($data === false)

	{
$data = eaccelerator_get($this->unique_id."_".$name);
if($data === false)

Zeile 67Zeile 63
			return false;
}


			return false;
}


		return unserialize($data);


		// use native_unserialize() over my_unserialize() for performance reasons
return native_unserialize($data);

	}

/**

	}

/**

Zeile 111Zeile 108
	 *
* @return string
*/

	 *
* @return string
*/

	function size_of($name)

	function size_of($name='')

	{
global $lang;


	{
global $lang;