{% import "_includes/forms" as forms %} {% set info %} {{ "The folder path should be in the site’s public webroot if the cached files should be publicly available."|t('blitz') }} {% endset %} {{ forms.autosuggestField({ label: "Folder Path"|t('blitz'), instructions: "The path to your cache folder."|t('blitz') ~ info, suggestEnvVars: true, suggestAliases: true, name: 'folderPath', value: driver.folderPath, errors: driver.getErrors('folderPath'), placeholder: '@webroot/cache/blitz', required: true, }) }} {% set info %} {{ 'With this setting enabled, Blitz will compress cached files using gzip and write them to `index.html.gz` files for improved performance (requires extra code in server rewrites). Learn more'|t('blitz', {url: 'https://putyourlightson.com/plugins/blitz#server-rewrites'})|raw }} {% endset %} {{ forms.lightswitchField({ label: "Create Gzip Files"|t('blitz'), instructions: "Whether compressed versions of cached files should be created using gzip."|t('blitz') ~ info, name: 'createGzipFiles', on: driver.createGzipFiles, }) }}

{{ 'Use server rewrites for significant performance improvements. Learn more'|t('blitz', {url: 'https://putyourlightson.com/plugins/blitz#server-rewrites'})|raw }}