PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.5.3
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.5.3
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / mrclay / minify / config.php

config.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.5.3, at vendor/mrclay/minify/config.php

201 lines 6.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Configuration for "min", the default application built with the Minify
4 * library
5 *
6 * @package Minify
7 */
8
9
10 /**
11 * Enable the static serving feature
12 */
13 $min_enableStatic = false;
14
15
16 /**
17 * Allow use of the Minify URI Builder app. Only set this to true while you need it.
18 */
19 $min_enableBuilder = false;
20
21
22 /**
23 * Concatenate but do not minify the files. This can be used for testing.
24 */
25 $min_concatOnly = false;
26
27
28 /**
29 * If non-empty, the Builder will be protected with HTTP Digest auth.
30 * The username is "admin".
31 */
32 $min_builderPassword = 'admin';
33
34
35 /**
36 * Set to true to log messages to FirePHP (Firefox Firebug addon) and PHP's error_log
37 * Set to false for no error logging (Minify may be slightly faster).
38 */
39 $min_errorLogger = false;
40
41
42 /**
43 * To allow debug mode output, you must set this option to true.
44 *
45 * Once true, you can send the cookie minDebug to request debug mode output. The
46 * cookie value should match the URIs you'd like to debug. E.g. to debug
47 * /min/f=file1.js send the cookie minDebug=file1.js
48 * You can manually enable debugging by appending "&debug" to a URI.
49 * E.g. /min/?f=script1.js,script2.js&debug
50 *
51 * In 'debug' mode, Minify combines files with no minification and adds comments
52 * to indicate line #s of the original files.
53 */
54 $min_allowDebugFlag = false;
55
56
57 /**
58 * For best performance, specify your temp directory here. Otherwise Minify
59 * will have to load extra code to guess. Some examples below:
60 */
61 //$min_cachePath = 'c:\\WINDOWS\\Temp';
62 //$min_cachePath = '/tmp';
63 //$min_cachePath = preg_replace('/^\\d+;/', '', session_save_path());
64
65
66 /**
67 * To use APC/Memcache/ZendPlatform for cache storage, require the class and
68 * set $min_cachePath to an instance. Example below:
69 */
70 //$min_cachePath = new Minify_Cache_APC();
71
72
73 /**
74 * Leave an empty string to use PHP's $_SERVER['DOCUMENT_ROOT'].
75 *
76 * On some servers, this value may be misconfigured or missing. If so, set this
77 * to your full document root path with no trailing slash.
78 * E.g. '/home/accountname/public_html' or 'c:\\xampp\\htdocs'
79 *
80 * If /min/ is directly inside your document root, just uncomment the
81 * second line. The third line might work on some Apache servers.
82 */
83 $min_documentRoot = '';
84 //$min_documentRoot = dirname(dirname(__DIR__));
85 //$min_documentRoot = substr(__FILE__, 0, -15);
86 //$min_documentRoot = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT'];
87
88
89 /**
90 * Cache file locking. Set to false if filesystem is NFS. On at least one
91 * NFS system flock-ing attempts stalled PHP for 30 seconds!
92 */
93 $min_cacheFileLocking = true;
94
95
96 /**
97 * Combining multiple CSS files can place @import declarations after rules, which
98 * is invalid. Minify will attempt to detect when this happens and place a
99 * warning comment at the top of the CSS output. To resolve this you can either
100 * move the @imports within your CSS files, or enable this option, which will
101 * move all @imports to the top of the output. Note that moving @imports could
102 * affect CSS values (which is why this option is disabled by default).
103 */
104 $min_serveOptions['bubbleCssImports'] = false;
105
106
107 /**
108 * Cache-Control: max-age value sent to browser (in seconds). After this period,
109 * the browser will send another conditional GET. Use a longer period for lower
110 * traffic but you may want to shorten this before making changes if it's crucial
111 * those changes are seen immediately.
112 *
113 * Note: Despite this setting, if you include a number at the end of the
114 * querystring, maxAge will be set to one year. E.g. /min/f=hello.css&123456
115 */
116 $min_serveOptions['maxAge'] = 1800;
117
118
119 /**
120 * To use the CSS compressor that shipped with 2.x, uncomment the following line:
121 */
122 //$min_serveOptions['minifiers'][Minify::TYPE_CSS] = array('Minify_CSS', 'minify');
123
124
125 /**
126 * To use Google's Closure Compiler API to minify Javascript (falling back to JSMin
127 * on failure), uncomment the following line:
128 */
129 //$min_serveOptions['minifiers']['application/x-javascript'] = array('Minify_JS_ClosureCompiler', 'minify');
130
131
132 /**
133 * If you'd like to restrict the "f" option to files within/below
134 * particular directories below DOCUMENT_ROOT, set this here.
135 * You will still need to include the directory in the
136 * f or b GET parameters.
137 *
138 * // = shortcut for DOCUMENT_ROOT
139 */
140 //$min_serveOptions['minApp']['allowDirs'] = array('//js', '//css');
141
142 /**
143 * Set to true to disable the "f" GET parameter for specifying files.
144 * Only the "g" parameter will be considered.
145 */
146 $min_serveOptions['minApp']['groupsOnly'] = false;
147
148
149 /**
150 * By default, Minify will not minify files with names containing .min or -min
151 * before the extension. E.g. myFile.min.js will not be processed by JSMin
152 *
153 * To minify all files, set this option to null. You could also specify your
154 * own pattern that is matched against the filename.
155 */
156 //$min_serveOptions['minApp']['noMinPattern'] = '@[-\\.]min\\.(?:js|css)$@i';
157
158
159 /**
160 * If you minify CSS files stored in symlink-ed directories, the URI rewriting
161 * algorithm can fail. To prevent this, provide an array of link paths to
162 * target paths, where the link paths are within the document root.
163 *
164 * Because paths need to be normalized for this to work, use "//" to substitute
165 * the doc root in the link paths (the array keys). E.g.:
166 * <code>
167 * array('//symlink' => '/real/target/path') // unix
168 * array('//static' => 'D:\\staticStorage') // Windows
169 * </code>
170 */
171 $min_symlinks = array();
172
173
174 /**
175 * If you upload files from Windows to a non-Windows server, Windows may report
176 * incorrect mtimes for the files. This may cause Minify to keep serving stale
177 * cache files when source file changes are made too frequently (e.g. more than
178 * once an hour).
179 *
180 * Immediately after modifying and uploading a file, use the touch command to
181 * update the mtime on the server. If the mtime jumps ahead by a number of hours,
182 * set this variable to that number. If the mtime moves back, this should not be
183 * needed.
184 *
185 * In the Windows SFTP client WinSCP, there's an option that may fix this
186 * issue without changing the variable below. Under login > environment,
187 * select the option "Adjust remote timestamp with DST".
188 * @link http://winscp.net/eng/docs/ui_login_environment#daylight_saving_time
189 */
190 $min_uploaderHoursBehind = 0;
191
192
193 /**
194 * Advanced: you can replace some of the PHP classes Minify uses to serve requests.
195 * To do this, assign a callable to one of the elements of the $min_factories array.
196 *
197 * You can see the default implementations (and what gets passed in) in index.php.
198 */
199 //$min_factories['minify'] = ... a callable accepting a Minify\App object
200 //$min_factories['controller'] = ... a callable accepting a Minify\App object
201