2019-08-07 17:01:55 +02:00
|
|
|
# Manages the php cli main ini file
|
2019-08-27 00:28:44 +02:00
|
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
|
|
|
{%- from tplroot ~ "/map.jinja" import php with context %}
|
|
|
|
{%- from tplroot ~ "/ini.jinja" import php_ini %}
|
2019-08-07 17:01:55 +02:00
|
|
|
|
2019-08-27 00:28:44 +02:00
|
|
|
{%- set settings = php.xcache.ini.defaults %}
|
|
|
|
{%- for key, value in php.xcache.ini.settings.items() %}
|
|
|
|
{%- if settings[key] is defined %}
|
|
|
|
{%- do settings[key].update(value) %}
|
|
|
|
{%- else %}
|
|
|
|
{%- do settings.update({key: value}) %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
2019-08-07 17:01:55 +02:00
|
|
|
|
|
|
|
php_xcache_ini:
|
2019-08-27 00:28:44 +02:00
|
|
|
{{ php_ini(php.lookup.xcache.ini,
|
|
|
|
'php_xcache_ini',
|
|
|
|
php.xcache.ini.opts,
|
|
|
|
settings
|
|
|
|
) }}
|