Configuration

About configuration file
Configuration file: plugins/wp2speed/lib/config.php
array(
'xmlrpc'=> 1, //enable/disable xmlrpc feature
'debug'=> 1,
'test'=> 0, //debug javascript
'minify_merge'=> 0, //note: minify js can make error
//default =1: because separate load js may not wrap in document ready
'merge_js'=> isset($_GET['merge_js'])? (int)$_GET['merge_js']:1,
'merge_css'=> isset($_GET['merge_css'])? (int)$_GET['merge_css']:1,
'purge_transient'=> 0,
'lazyload'=> 1,
'lazy_class'=> 'lazy',
'lazy_fix'=> 0,
'same_css_lang'=>1,
'logo_base64'=>1,
'server_cache'=> 0,
'license_key'=> 'AKfycbwDhi-zgHe8aufOZAXbSzIrWGCx_RsMU0nMsDpecnfnZ9BxJO7t',
);
Explain:
  • xmlrpc - 1=enable or 0=disable xmlrpc in wordpress.
  • test - 1= turn on javascript debugging in chrome dev tool.
  • minify_merge - 1= allow minify js,css after merging
  • merge_js - 1= allow merge js files into one file
  • merge_css - 1= allow merge css files into one file
  • purge_transient - 1= allow clear transients data in database when hit purge all button.
  • lazyload - 1= enable lazyload feature on all images.
  • lazy_class - specify lazyload class. eg: <img class="lazy" />
  • lazy_fix - 1= if got wrong lazy. eg: duplicate src attribute...
  • same_css_lang - 1= use same critical css for all languages if your site use multiple languages. eg: http://example.com/en/post-1 get same critical css with http://example.com/vi/post-1
  • logo_base64 - 1= allow base64 logo image.
  • server_cache - 1= Enable this option if you are using our server cache package.
  • license_key - a license key.
Last modified 2yr ago