Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/minify/config.php File Reference

Go to the source code of this file.

Namespaces

namespace  Minify

Variables

 $min_allowDebugFlag = ($CFG->debug)
 $min_errorLogger = false
 $min_enableBuilder = false
 $min_cachePath = $CFG->tempdir.''
 $min_documentRoot = $CFG->dirroot.'/lib/minify'
 $min_cacheFileLocking = true
 $min_serveOptions ['bubbleCssImports'] = false
 $min_serveOptions ['maxAge'] = 1800
 $min_serveOptions ['minApp']['groupsOnly'] = true
 $min_serveOptions ['minApp']['maxFiles'] = 10
 $min_symlinks = array()
 $min_uploaderHoursBehind = 0
 $min_libPath = $CFG->libdir . '/minify/lib'

Variable Documentation

$min_allowDebugFlag = ($CFG->debug)

In 'debug' mode, Minify can combine files with no minification and add comments to indicate line s of the original files.

To allow debugging, set this option to true and add "&debug=1" to a URI. E.g. /min/?f=script1.js,script2.js&debug=1

Definition at line 16 of file config.php.

$min_cacheFileLocking = true

Cache file locking. Set to false if filesystem is NFS. On at least one NFS system flock-ing attempts stalled PHP for 30 seconds!

Definition at line 65 of file config.php.

$min_cachePath = $CFG->tempdir.''

For best performance, specify your temp directory here. Otherwise Minify will have to load extra code to guess. Some examples below:

Definition at line 43 of file config.php.

$min_documentRoot = $CFG->dirroot.'/lib/minify'

Leave an empty string to use PHP's $_SERVER['DOCUMENT_ROOT'].

On some servers, this value may be misconfigured or missing. If so, set this to your full document root path with no trailing slash. E.g. '/home/accountname/public_html' or 'c:\xampp\htdocs'

If /min/ is directly inside your document root, just uncomment the second line. The third line might work on some Apache servers.

Definition at line 56 of file config.php.

$min_enableBuilder = false

Allow use of the Minify URI Builder app. If you no longer need this, set to false.

Definition at line 36 of file config.php.

$min_errorLogger = false

Set to true to log messages to FirePHP (Firefox Firebug addon). Set to false for no error logging (Minify may be slightly faster). If you want to use a custom error logger, set this to your logger instance. Your object should have a method log(string $message). todo 90.

Definition at line 29 of file config.php.

$min_libPath = $CFG->libdir . '/minify/lib'

Path to Minify's lib folder. If you happen to move it, change this accordingly.

Definition at line 151 of file config.php.

$min_serveOptions['bubbleCssImports'] = false

Combining multiple CSS files can place declarations after rules, which is invalid. Minify will attempt to detect when this happens and place a warning comment at the top of the CSS output. To resolve this you can either move the within your CSS files, or enable this option, which will move all to the top of the output. Note that moving could affect CSS values (which is why this option is disabled by default).

Definition at line 76 of file config.php.

$min_serveOptions['maxAge'] = 1800

Maximum age of browser cache in seconds. After this period, the browser will send another conditional GET. Use a longer period for lower traffic but you may want to shorten this before making changes if it's crucial those changes are seen immediately.

Note: Despite this setting, if you include a number at the end of the querystring, maxAge will be set to one year. E.g. /min/f=hello.css&123456

Definition at line 88 of file config.php.

$min_serveOptions['minApp']['groupsOnly'] = true

If you'd like to restrict the "f" option to files within/below particular directories below DOCUMENT_ROOT, set this here. You will still need to include the directory in the f or b GET parameters.

// = shortcut for DOCUMENT_ROOT Set to true to disable the "f" GET parameter for specifying files. Only the "g" parameter will be considered.

Definition at line 105 of file config.php.

$min_serveOptions['minApp']['maxFiles'] = 10

Maximum # of files that can be specified in the "f" GET parameter

Definition at line 110 of file config.php.

$min_symlinks = array()

If you minify CSS files stored in symlink-ed directories, the URI rewriting algorithm can fail. To prevent this, provide an array of link paths to target paths, where the link paths are within the document root.

Because paths need to be normalized for this to work, use "//" to substitute the doc root in the link paths (the array keys). E.g.: array('//symlink' => '/real/target/path') // unix array('//static' => 'D:\staticStorage') // Windows

Definition at line 125 of file config.php.

$min_uploaderHoursBehind = 0

If you upload files from Windows to a non-Windows server, Windows may report incorrect mtimes for the files. This may cause Minify to keep serving stale cache files when source file changes are made too frequently (e.g. more than once an hour).

Immediately after modifying and uploading a file, use the touch command to update the mtime on the server. If the mtime jumps ahead by a number of hours, set this variable to that number. If the mtime moves back, this should not be needed.

In the Windows SFTP client WinSCP, there's an option that may fix this issue without changing the variable below. Under login > environment, select the option "Adjust remote timestamp with DST". http://winscp.net/eng/docs/ui_login_environment#daylight_saving_time

Definition at line 144 of file config.php.

 All Data Structures Namespaces Files Functions Variables Enumerations