Warning: Undefined array key "orderhash" in /home/labreunis/maxkuku.ru/docs/webmaster/index.php on line 177
Список полезных функций
(☞ຈل͜ຈ)☞ Главная  Статьи  Загрузчик Домой


Warning: Undefined variable $name in /home/labreunis/maxkuku.ru/docs/webmaster/index.php on line 209

Warning: Undefined array key "orderhash" in /home/labreunis/maxkuku.ru/docs/webmaster/index.php on line 224

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/labreunis/maxkuku.ru/docs/webmaster/index.php on line 224

Warning: Undefined variable $name in /home/labreunis/maxkuku.ru/docs/webmaster/index.php on line 224

Warning: Undefined variable $name in /home/labreunis/maxkuku.ru/docs/webmaster/index.php on line 294
Ok!
Ok!
316
'cache' => array(
       'value' => array (
          'type' => 'memcache',
          'memcache' => array(
              'host' => 'localhost',
              'port' => '11211'
          ),
          'sid' => $_SERVER["DOCUMENT_ROOT"]."#01"
       ),
    ),
memcached, bitrix300настройка memcached в bitrix в файле .settings.php
274
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
use BitrixMainDataCache;
$elems = [];
$cash_key = md5("hdgbchdch383787lkokcodcjj8773asas_"); 
$cache = Cache::createInstance(); // получаем экземпляр класса
if ($cache->initCache(360000, $cash_key)) { // проверяем кеш и задаём настройки
    $elems = $cache->getVars(); // достаем переменные из кеша
}
elseif ($cache->startDataCache()) {

	...вычисления

    $cache->endDataCache($elems); // записываем в кеш
}
cache, bitrix, кеширование23600Кеширование блоков в битрикс
43
$file = CFile::ResizeImageGet($uInfo['PERSONAL_PHOTO'], array('width'=>150, 'height'=>150), BX_RESIZE_IMAGE_PROPORTIONAL, true);
cache, resize, cfile1290Resize Image Get. Получить массив файла по ID