-
-
Save emphazer/ff4b902c3422bced6222 to your computer and use it in GitHub Desktop.
(An) Optimal Drupal 7 Module Configuration for Site Performance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # baseline advagg + httprl configuration | |
| $conf['advagg_bundler_active'] = 1; | |
| $conf['advagg_cache_level'] = 1; | |
| $conf['advagg_combine_css_media'] = 0; | |
| $conf['advagg_core_groups'] = 0; | |
| $conf['advagg_css_compressor'] = 2; | |
| $conf['advagg_css_inline_compressor'] = 2; | |
| $conf['advagg_css_inline_compress_if_not_cacheable'] = 1; | |
| $conf['advagg_enabled'] = 1; | |
| $conf['advagg_gzip'] = 1; | |
| $conf['advagg_ie_css_selector_limiter'] = 1; | |
| $conf['advagg_js_compressor'] = 3; ### requires http://pecl.php.net/package/jsmin | |
| $conf['advagg_js_compress_packer'] = 0; | |
| $conf['advagg_js_inline_compressor'] = 3; | |
| $conf['advagg_js_inline_compress_if_not_cacheable'] = 1; | |
| $conf['preprocess_css'] = 1; | |
| $conf['preprocess_js'] = 1; | |
| $conf['advagg_use_httprl'] = 1; | |
| $conf['httprl_background_callback'] = 1; | |
| $conf['httprl_connect_timeout'] = 3; | |
| $conf['httprl_dns_timeout'] = 3; | |
| $conf['httprl_global_timeout'] = "60"; | |
| $conf['httprl_server_addr'] = "-1"; | |
| $conf['httprl_timeout'] = "10"; | |
| $conf['httprl_ttfb_timeout'] = "5"; | |
| # Disable performance degrading mdules | |
| drush dis dblog update coder devel l10n_update -y | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment