Configuration
About configuration file
Configuration file: plugins/wp2speed/lib/config.php
1
array(
2
3
'xmlrpc'=> 1, //enable/disable xmlrpc feature
4
'debug'=> 1,
5
'test'=> 0, //debug javascript
6
'minify_merge'=> 0, //note: minify js can make error
7
8
//default =1: because separate load js may not wrap in document ready
9
'merge_js'=> isset($_GET['merge_js'])? (int)$_GET['merge_js']:1,
10
'merge_css'=> isset($_GET['merge_css'])? (int)$_GET['merge_css']:1,
11
12
'purge_transient'=> 0,
13
'lazyload'=> 1,
14
'lazy_class'=> 'lazy',
15
'lazy_fix'=> 0,
16
'same_css_lang'=>1,
17
18
'logo_base64'=>1,
19
'server_cache'=> 0,
20
'license_key'=> 'AKfycbwDhi-zgHe8aufOZAXbSzIrWGCx_RsMU0nMsDpecnfnZ9BxJO7t',
21
22
);
Copied!
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 8mo ago
Copy link