Skip to content

Instantly share code, notes, and snippets.

@EscApp2
Last active August 5, 2021 12:35
Show Gist options
  • Save EscApp2/248b71fbf1fb659a5ce2065bb3da5b06 to your computer and use it in GitHub Desktop.
Save EscApp2/248b71fbf1fb659a5ce2065bb3da5b06 to your computer and use it in GitHub Desktop.
bitrix cache example
<?php
return array (
'utf_mode' =>
array (
'value' => true,
'readonly' => true,
),
'cache_flags' =>
array (
'value' =>
array (
'config_options' => 3600,
'site_domain' => 3600,
),
'readonly' => false,
),
'cookies' =>
array (
'value' =>
array (
'secure' => false,
'http_only' => true,
),
'readonly' => false,
),
'exception_handling' =>
array (
'value' =>
array (
'debug' => true,
'handled_errors_types' => 4437,
'exception_errors_types' => 4437,
'ignore_silence' => false,
'assertion_throws_exception' => true,
'assertion_error_type' => 256,
'log' => NULL,
),
'readonly' => false,
),
'connections' =>
array (
'value' =>
array (
'default' =>
array (
'className' => '\\Bitrix\\Main\\DB\\MysqliConnection',
'host' => 'localhost',
'database' => '',
'login' => '',
'password' => '',
'options' => 2,
),
),
'readonly' => true,
),
);
<?php
return array(
'cache' => array(
'value' => array(
'type' => 'memcache',
'memcache' => array(
'host' => '127.0.0.1',
'port' => '11211',
),
'sid' => $_SERVER["DOCUMENT_ROOT"]."#01"
),
),
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment