Комментатор 127

Активация не завершена. Завершить

Дата регистрации: 2009-07-21 02:25:54

Комментариев: 8


Его последние комментарии:

  • MaxSite CMS один год!
    2009-07-24 06:29:50

    Отличный блог smile жаль шаблонов пока мало

    Шаблонов: 2
  • MaxSite CMS 0.32
    2009-07-24 06:28:30

    можете добавить в движок PHP акселераторы код классов выше ? xCache, eAccelerator, APC, memcache

  • MaxSite CMS 0.32
    2009-07-21 02:44:37

    добавил запрос ваш движок теперь поддерживает так же http://code.google.com/p/web-optimizator/

  • MaxSite CMS 0.32
    2009-07-21 02:42:16

    уж больно хорошо данных вес глючил пока не применил опкод кеширование

  • MaxSite CMS 0.32
    2009-07-21 02:41:10

    define("CACHE", "none"); // "none", "APC", "eaccelerator"

    switch (CACHE)
    {
    	case 'eaccelerator':
    		$tr_cache = new cache_eaccelerator();
    		break;
    	case 'APC':
    		$tr_cache = new cache_apc();
    		break;
    		
    	case 'xcache':
    		$tr_cache = new cache_xcache();
    		break;
    	default:
    		$tr_cache = new cache_common();
    }
  • MaxSite CMS 0.32
    2009-07-21 02:36:54
    class cache_xcache extends cache_common
    {
    	var $used = true;
    	function cache_xcache ()
    	{
    		if (!$this->is_installed())
    		{
    			die('Error: XCache extension not installed');
    		}
    	}
    	function get ($name)
    	{
    		return xcache_get($name);
    	}
    	function set ($name, $value, $ttl = 0)
    	{
    		return xcache_set($name, $value, $ttl);
    	}
    	function rm ($name)
    	{
    		return xcache_rm($name);
    	}
    	function is_installed ()
    	{
    		return function_exists('xcache_get');
    	}
    }
  • MaxSite CMS 0.32
    2009-07-21 02:34:22

    не вижно долгожданной поддержки xCache, eAccelerator, APC, memcache

    class cache_common
    {
    	var $used = false;
    	/**
    	* Returns value of variable
    	*/
    	function get ($name)
    	{
    		return false;
    	}
    	/**
    	* Store value of variable
    	*/
    	function set ($name, $value, $ttl = 0)
    	{
    		return false;
    	}
    	/**
    	* Remove variable
    	*/
    	function rm ($name)
    	{
    		return false;
    	}
    }
    class cache_eaccelerator extends cache_common
    {
    	var $used = true;
    	function cache_eaccelerator ()
    	{
    		if (!$this->is_installed())
    		{
    			die('Error: eAccelerator extension not installed');
    		}
    	}
    	function get ($name)
    	{
    		return eaccelerator_get($name);
    	}
    	function set ($name, $value, $ttl = 0)
    	{
    		return eaccelerator_put($name, $value, $ttl);
    	}
    	function rm ($name)
    	{
    		return eaccelerator_rm($name);
    	}
    	function is_installed ()
    	{
    		return function_exists('eaccelerator_get');
    	}
    }
    class cache_apc extends cache_common
    {
    	var $used = true;
    	function cache_apc ()
    	{
    		if (!$this->is_installed())
    		{
    			die('Error: APC extension not installed');
    		}
    	}
    	function get ($name)
    	{
    		return apc_fetch($name);
    	}
    	function set ($name, $value, $ttl = 0)
    	{
    		return apc_store($name, $value, $ttl);
    	}
    	function rm ($name)
    	{
    		return apc_delete($name);
    	}
    	function is_installed ()
    	{
    		return function_exists('apc_fetch');
    	}
    }
  • MaxSite CMS 0.32
    2009-07-21 02:25:54
    Пустые слова. Конкретный пример, описание, метод есть?
    bot.php.gif и будет большое бобо старому апатчу сконфигурированному неправильно.