{#** * 2007-2019 PrestaShop and Contributors * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *#} {% extends '@PrestaShop/Admin/layout.html.twig' %} {% trans_default_domain "Admin.Advparameters.Feature" %} {% import '@PrestaShop/Admin/macros.html.twig' as ps %} {% set smartyForm, debugModeForm, optionalFeaturesForm, combineCompressCacheForm, mediaServersForm, cachingForm, memcacheForm = form.smarty, form.debug_mode, form.optional_features, form.ccc, form.media_servers, form.caching, form.add_memcache_server %} {% block content %} {{ form_start(form, {'attr' : {'class': 'form'} }) }}
{% block perfs_form_smarty_cache %}

business_center {{ 'Smarty'|trans }}

{{ form_errors(smartyForm.template_compilation) }} {{ form_widget(smartyForm.template_compilation) }}
{{ ps.label_with_help(('Cache'|trans), ('Should be enabled except for debugging.'|trans)) }}
{{ form_errors(smartyForm.cache) }} {{ form_widget(smartyForm.cache) }}
{{ ps.label_with_help(('Multi-front optimizations'|trans), ('Should be enabled if you want to avoid to store the smarty cache on NFS.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(smartyForm.multi_front_optimization) }} {{ form_widget(smartyForm.multi_front_optimization) }}
{{ form_errors(smartyForm.caching_type) }} {{ form_widget(smartyForm.caching_type) }}
{{ form_errors(smartyForm.clear_cache) }} {{ form_widget(smartyForm.clear_cache) }}
{{ form_rest(smartyForm) }}
{% endblock %} {% block perfs_form_debug_mode %}

bug_report {{ 'Debug mode'|trans }}

{{ ps.label_with_help(('Disable non PrestaShop modules'|trans), ('Enable or disable non PrestaShop Modules.'|trans({}, 'Admin.Advparameters.Feature'))) }}
{{ form_errors(debugModeForm.disable_non_native_modules) }} {{ form_widget(debugModeForm.disable_non_native_modules) }}
{{ ps.label_with_help(('Disable all overrides'|trans), ('Enable or disable all classes and controllers overrides.'|trans({}, 'Admin.Advparameters.Feature'))) }}
{{ form_errors(debugModeForm.disable_overrides) }} {{ form_widget(debugModeForm.disable_overrides) }}
{{ ps.label_with_help(('Debug mode'|trans), ('Enable or disable debug mode.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(debugModeForm.debug_mode) }} {{ form_widget(debugModeForm.debug_mode) }}
{{ form_rest(debugModeForm) }}
{% endblock %} {% block perfs_form_optional_features %}

extension {{ 'Optional features'|trans }}

{{ ps.infotip('Some features can be disabled in order to improve performance.'|trans({}, 'Admin.Advparameters.Help')) }}
{{ ps.label_with_help(('Combinations'|trans({}, 'Admin.Global')), ('Choose "No" to disable Product Combinations.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(optionalFeaturesForm.combinations) }} {{ form_widget(optionalFeaturesForm.combinations) }}
{% if optionalFeaturesForm.combinations.vars.disabled %} {{ ps.warningtip('You cannot set this parameter to No when combinations are already used by some of your products'|trans({}, 'Admin.Advparameters.Help')) }} {% endif %}
{{ ps.label_with_help(('Features'|trans({}, 'Admin.Global')), ('Choose "No" to disable Product Features.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(optionalFeaturesForm.features) }} {{ form_widget(optionalFeaturesForm.features) }}
{{ ps.label_with_help(('Customer groups'|trans), ('Choose "No" to disable Customer Groups.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(optionalFeaturesForm.customer_groups) }} {{ form_widget(optionalFeaturesForm.customer_groups) }}
{{ form_rest(optionalFeaturesForm) }}
{% endblock %} {% block perfs_form_ccc %}

zoom_out_map {{ 'CCC (Combine, Compress and Cache)'|trans }}

{{ ps.infotip('CCC allows you to reduce the loading time of your page. With these settings you will gain performance without even touching the code of your theme. Make sure, however, that your theme is compatible with PrestaShop 1.4+. Otherwise, CCC will cause problems.'|trans({}, 'Admin.Advparameters.Help')) }}
{{ form_errors(combineCompressCacheForm.smart_cache_css) }} {{ form_widget(combineCompressCacheForm.smart_cache_css) }}
{{ form_errors(combineCompressCacheForm.smart_cache_js) }} {{ form_widget(combineCompressCacheForm.smart_cache_js) }}
{{ ps.label_with_help(('Apache optimization'|trans), ('This will add directives to your .htaccess file, which should improve caching and compression.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(combineCompressCacheForm.apache_optimization) }} {{ form_widget(combineCompressCacheForm.apache_optimization) }}
{{ form_rest(combineCompressCacheForm) }}
{% endblock %} {% block perfs_form_media_servers %}

link {{ 'Media servers (use only with CCC)'|trans }}

{{ ps.infotip('You must enter another domain, or subdomain, in order to use cookieless static content.'|trans({}, 'Admin.Advparameters.Feature')) }}
{{ ps.label_with_help(('Media server #1'|trans({}, 'Admin.Advparameters.Feature')), ('Name of the second domain of your shop, (e.g. myshop-media-server-1.com). If you do not have another domain, leave this field blank.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(mediaServersForm.media_server_one) }} {{ form_widget(mediaServersForm.media_server_one) }}
{{ ps.label_with_help(('Media server #2'|trans({}, 'Admin.Advparameters.Feature')), ('Name of the third domain of your shop, (e.g. myshop-media-server-2.com). If you do not have another domain, leave this field blank.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(mediaServersForm.media_server_two) }} {{ form_widget(mediaServersForm.media_server_two) }}
{{ ps.label_with_help(('Media server #3'|trans({}, 'Admin.Advparameters.Feature')), ('Name of the fourth domain of your shop, (e.g. myshop-media-server-3.com). If you do not have another domain, leave this field blank.'|trans({}, 'Admin.Advparameters.Help'))) }}
{{ form_errors(mediaServersForm.media_server_three) }} {{ form_widget(mediaServersForm.media_server_three) }}
{{ form_rest(mediaServersForm) }}
{% endblock %} {% block perfs_form_caching %}

link {{ 'Caching'|trans }}

{{ form_errors(cachingForm.use_cache) }} {{ form_widget(cachingForm.use_cache) }}
{{ form_errors(cachingForm.caching_system) }} {{ form_widget(cachingForm.caching_system) }}
{{ form_rest(cachingForm) }} {{ include('@AdvancedParameters/memcache_servers.html.twig', {'form': memcacheForm}) }}
{% endblock %}
{{ form_end(form) }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}