Иконка ресурса

LCache Speed Up 1.0.4

Нет прав для скачивания
Совместимость с XenForo
  1. 1.3
  2. 1.4
  3. 1.5
Видимый копирайт
Нет
Подробнее о данном способе кэширования здесь:

После установки плагина в файл config.php добавляем:
PHP:
if (php_sapi_name() !== 'cli') {
    $config['cache']['backend'] = 'LCache';
    $config['cache']['backendOptions'] = array(
        'l2' => array(
            'type' => 'mysql',
            'prefix' => 'xf_',
            'config' => $config['db']
        )
    );
}


Доступные опции:
PHP:
// Define a bin where it will be stored. Allows for multiple sites to use the caching service on the same DB.
'bin' => 's1',
// The PHP pool. Define a custom one, use null for the pool IP/ID, or use [B]hostname[/B] to use your server's hostname.
'pool' => null,
// Used internally. Does not apply to XF.
'group' => 'default',
// Whether or not an item has an expiration date.
 'can_expire' => true,
// L1 Configuration
 'l1' => array(
  'type' => 'apcu',
  'config' => array()
),
// L2 Configuration
'l2' => array(
  'type' => 'mysql',
  'prefix' => 'xg_',
  'config' => array()
)
Автор
Hope
Скачивания
10
Просмотры
112
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок

Поделиться ресурсом

Последние обновления

  1. 1.0.4

    Исправлена ошибка с удалением плагина
Назад
Сверху Снизу