* array('//symlink' => '/real/target/path') // unix * array('//static' => 'D:\\staticStorage') // Windows * */ $min_symlinks = array(); /** * Configure an alias for EGroupware, as it is common setup * * Requires patched lib/Minify/Controller/MinApp.php, to understand aliases defined as symlink! */ list($sitePrefix) = explode('/phpgwapi/inc/min/', $_SERVER['REQUEST_URI']); $min_symlinks['//'.ltrim($sitePrefix, '/')] = dirname(dirname(dirname(__DIR__))); /** * Remove all "use strict" as we have a mixure of strict and non-strict code (mostly externals libs) * and javascript is supposed to run quicker without anyway. */ $min_serveOptions['postprocessor'] = function($in){ return str_replace(array('"use strict";', '"use strict"'), '', $in);}; /** * 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". * @link http://winscp.net/eng/docs/ui_login_environment#daylight_saving_time */ $min_uploaderHoursBehind = 0; /** * Path to Minify's lib folder. If you happen to move it, change * this accordingly. */ $min_libPath = dirname(__FILE__) . '/lib'; // try to disable output_compression (may not have an effect) ini_set('zlib.output_compression', '0');