- Совместимость с XenForo
- 1.3
- 1.4
- 1.5
- Видимый копирайт
- Нет
Подробнее о данном способе кэширования здесь:
После установки плагина в файл config.php добавляем:
Доступные опции:
После установки плагина в файл 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()
)